+ Reply to Thread
Results 1 to 3 of 3

problem with if statements and error handling

  1. #1
    Registered User
    Join Date
    05-03-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    59

    problem with if statements and error handling

    I currently have an if... then structure as shown below. however, i have a problem where if the error message is activated (i.e. if an input error is made), then it also does the last code module.

    Please Login or Register  to view this content.
    I want to fix this statement so that if the error message happens then the last code module isn't run. but, when i try to move one of the end if statements to after the last code module, i get an error. what is the correct way to fix this?

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: problem with if statements and error handling

    Maybe like this???
    Please Login or Register  to view this content.
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: problem with if statements and error handling

    Or another possiblity
    Please Login or Register  to view this content.

    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1