Results 1 to 3 of 3

Thread: Stop macro in excel

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2004
    Posts
    1

    Stop macro in excel

    hi

    I just create some macro in excel and i need some help to finish it...

    So... i need a code to stop the macro at some point. For example:

    If mystring = somethink then
    *** Stop/break the opretaion ***
    EndIf

    I try with stop function and it does not work as i need it...

    Thx

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: Stop macro in excel

    An
    VB Code:
    1. Exit Sub
    will do
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  3. #3
    Addicted Member thiru_rajamani's Avatar
    Join Date
    Aug 2004
    Location
    Chennai,India
    Posts
    214

    Re: Stop macro in excel

    for quitting program

    End

    for exiting a subject

    Exit Sub
    Thanks
    Raj

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width