Ampleford
Active Member
- Joined
- Mar 26, 2002
- Messages
- 380
I'm using a dialogue box, and can't remember the code to write to stop the macro if the operator clicks no...
It looks a bit like this so far...
Sub AskFirst()
Dim msg2 As String
msg2 = "Joe Bloggs" & vbNewLine & "This is an irreversible procedure" & vbNewLine & "Are you completely sure you want to close the invoice?"
MsgBox msg2, vbYesNo, "Warning !"
End Sub
I now want it to do a number of things....
1) - If they click "No" - end sub
2) - If they click "Yes" then
a) open an input box asking for a value and placing that value on the same tab (called "close") on cell G8
b) run a macro called "Close"
who can help ? I know there's about three things in one request, but I'm really tring to push myself on these.....
thanks millions (as always)
It looks a bit like this so far...
Sub AskFirst()
Dim msg2 As String
msg2 = "Joe Bloggs" & vbNewLine & "This is an irreversible procedure" & vbNewLine & "Are you completely sure you want to close the invoice?"
MsgBox msg2, vbYesNo, "Warning !"
End Sub
I now want it to do a number of things....
1) - If they click "No" - end sub
2) - If they click "Yes" then
a) open an input box asking for a value and placing that value on the same tab (called "close") on cell G8
b) run a macro called "Close"
who can help ? I know there's about three things in one request, but I'm really tring to push myself on these.....
thanks millions (as always)