jl2509
Board Regular
- Joined
- Oct 30, 2015
- Messages
- 198
- Office Version
- 365
- Platform
- Windows
Hi
Can anyone advise for a macro that will check cell A2 for a value of "True"
If cell A2 does contain "True" then return a messagebox "Are you sure this is the correct selection?" vbyesno
if vbyes is pressed then continue with code or if no is selected exit sub
This must be run from a command button as this is a print routine.
I know this is miles away, but this is my thought process.
If Range("A2") = True Then
MsgBox "Are you sure this is the correct selection?", vbYesNo
if response = vbYes
continue code
.....
.....
if response = vbno then
exit sub
many thanks
Can anyone advise for a macro that will check cell A2 for a value of "True"
If cell A2 does contain "True" then return a messagebox "Are you sure this is the correct selection?" vbyesno
if vbyes is pressed then continue with code or if no is selected exit sub
This must be run from a command button as this is a print routine.
I know this is miles away, but this is my thought process.
If Range("A2") = True Then
MsgBox "Are you sure this is the correct selection?", vbYesNo
if response = vbYes
continue code
.....
.....
if response = vbno then
exit sub
many thanks