I have attached a copy of a macro that copies/pastes information from many sheets to one. Everything works fine but I would like to add a snip of code. Before it does anything I would like to check for a blank cell C2 in any worksheet. If it finds a blank, a message box should pop up and then the entire sub should quit. The user can rerun the macro after the missing info has been taken care of. If there are no blank C2s the macro would continue with the 1st “Do While”. This is what I tested outside of the main macro, with all the C2 cells blank ,but I didn’t get an error message. The macro just ran and quit. Can you tell me what I am saying incorrectly?
Sub MissingAccounts()
‘Application.ScreenUpdating = False
For Each ws In Worksheets
If Range(“c2″) = ” ” Then
MsgBox “You have Missing Activity Codes”
End If
Next
End Sub
TIA