Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3458

Re: VBA Macros code to run a validation using BEFORE_SAVE Function and to Save Data

$
0
0

Thanks for the input, I actually ended up assigning an integer value to the validation cells;

 

=IF(M40="TIES",0,1) then at the very bottom I am adding all the number in a cell name "rng_Validation" which should add up to zero "0" in order to allow the the data to be saved to the server.

afterwards, I completed this with a simple VBA function;

 

Function BEFORE_SAVE()

If Range("rng_Validation") > 0 Then

    MsgBox "Please correct the numbers before saving", vbCritical

    BEFORE_SAVE = False

Else

    BEFORE_SAVE = True

End If

End Function


Viewing all articles
Browse latest Browse all 3458

Latest Images

Trending Articles



Latest Images