Nelson78
Well-known Member
- Joined
- Sep 11, 2017
- Messages
- 526
- Office Version
- 2007
Good morning.
I've the following job: the sub global is always preceded by a pop up of confirmation.
Now, I want the pop up only when one cell (example: B2) is empty.
Thank's in advance.
I've the following job: the sub global is always preceded by a pop up of confirmation.
Now, I want the pop up only when one cell (example: B2) is empty.
Code:
Sub global()
If Not check Then Exit Sub
Call first
Call second
End sub
Code:
Function check() As Boolean
Dim Answer As Integer
Answer = MsgBox("Do you want to go on?", vbYesNo)
If Answer = vbNo Then
Exit Function
End If
If Answer = vbYes Then
End If
Check = True
End Function
Thank's in advance.
Last edited: