exit macro from VB ??

  • Thread starter Thread starter steve
  • Start date Start date
S

steve

Im a basic user of VB and Macros.

I have a simple little macro that imports some data.

The area that IM having problem with is I want to on a msgbox either
keep runing the macro or close it.

The reason why I dont want to use msgbox action in the macro builder or
the stopmacro action in the message builder with a msgbox as a
condition is because the message Im leaving is sort of big. Its just
easier for me to write in a vb window.

So what I want to do is run a macro

have it run code
MsgBox("A new loginfo.log will be imported. yadda yaddia Do you want to
STOP!!", vbOKCancel) = vbCancel)
then based on this info either keep going or stop the originating
macro.

Can you do this ??
If so can you show me the code how to do this?

thank you.
 

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