I was looking for a solution to force users to fill in certain fields on a macros enabled excel, and today i've found this solution that worked as a charm, the only issue is that I as the autor need to close the file with the blank fields so it gets to the user ready to fill in, and this macros wont let me do that because the macros apply to everybody.
This is the macros (courtesy of Tom):
Is there a way I can tell in the macros that if I am (my user) working on it I don't have to fill the required fields?
Please tell me if you need more details about my issue...
Thanks!
P.S. I'm not considering using data validation because I'm already using them for dropdown lists in some options of my form.
This is the macros (courtesy of Tom):
Code:
<code>Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If WorksheetFunction.CountA( _
Worksheets("Sheet1").Range("A1,A2,A3,A5,A5, A6")) < 6 Then
MsgBox "Workbook will not be saved unless" & vbCrLf & _
"All required fields have been filled in!", , "Missing info"
Cancel = True
End If
End Sub</code>
Is there a way I can tell in the macros that if I am (my user) working on it I don't have to fill the required fields?
Please tell me if you need more details about my issue...
Thanks!
P.S. I'm not considering using data validation because I'm already using them for dropdown lists in some options of my form.