+ Reply to Thread
Results 1 to 3 of 3

Need help creating a Warning Message with two if statements

  1. #1
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Tampa, Florida
    MS-Off Ver
    Excel 2013
    Posts
    142

    Need help creating a Warning Message with two if statements

    Hello All,

    I have the following code tied to a button in an excel sheet. It confirms that the user did want to print the sheet.

    Please Login or Register  to view this content.
    Now I need to take it one step further. After the user has confirmed they want to print I need the code to basically check the following before printing:

    If Entry!B5="Fiber" then Entry!B6 must be a number greater than 0 else message box "Fiber Transport Selected - Please Enter Work Order #"
    The user would then click "Ok" then go back to the worksheet and enter the work order number in the proper place.
    If EntryB5 = anything else run the rest of the code.

    Worksheet "Entry" is the same sheet the button I have the macro tied to is on, if that matters.

    Thank you for any assistance

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Need help creating a Warning Message with two if statements

    Try this. I didn't validate any of the code you already posted.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Tampa, Florida
    MS-Off Ver
    Excel 2013
    Posts
    142

    Re: Need help creating a Warning Message with two if statements

    Worked perfectly. Thank you

+ 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