N
nrage21
I have the following situation...
...............E................F...............G
1
2
so on
7..........Jose.......1 Lake Ave......Tx.........[Commandbutton]
Code:
Private Sub Commandbutton_Click()
If Range("E7") <> "" And Range("F7") <> "" And Range("G7) <> "" Then
ActiveWorkbook.Save
Else
MsgBox "Unable to book! Complete ALL Fields"
End If
End Sub
Obviously the If and Then statement doesn't work (wrong syntax)... can
someone provide me with a solution?? I want the user to complete these
fields and then click the commandbutton that will check if all ranges
are completed and save the workbook.
TIA
- Larry -
VBA Amateur
...............E................F...............G
1
2
so on
7..........Jose.......1 Lake Ave......Tx.........[Commandbutton]
Code:
Private Sub Commandbutton_Click()
If Range("E7") <> "" And Range("F7") <> "" And Range("G7) <> "" Then
ActiveWorkbook.Save
Else
MsgBox "Unable to book! Complete ALL Fields"
End If
End Sub
Obviously the If and Then statement doesn't work (wrong syntax)... can
someone provide me with a solution?? I want the user to complete these
fields and then click the commandbutton that will check if all ranges
are completed and save the workbook.
TIA
- Larry -
VBA Amateur