Macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In your macro, say:



Dim Msg, Style, Answer As String
Msg = "Do you really wanna do that?"
Style = vbOKCancel + vbDefaultButton2

Reponse = MsgBox(Msg, Style)

If Reponse = vbOK Then

'Your previous code here

End If



Jerome

-----Original Message-----
I have created a Macro that resets my spread sheet to a default setting.
A command Button runs this macro and when I click the
button the sheet resets to the original setting.
Question.... is there a way that when I click this reset
button I clould get a massage that asks if I really want
to run this macro. I want this feature to keep me from
accidently resetting the spread sheet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top