+ Reply to Thread
Results 1 to 7 of 7

I need a message box to open up and display a message before printing.

  1. #1
    Registered User
    Join Date
    07-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    16

    I need a message box to open up and display a message before printing.

    I have some code here that I need modified, currently it prints the work sheet and clears the specified cells of the data in them and saves. I would like it to display a message box that states, "Have You Included a Contact in The Contact Field?" before the work sheet prints or clears the data. The message box would have YES and NO on it, once you click yes the spreadsheet will proceed to print, if you click NO then it will not print (or clear the data) and the cursor will go to cell I11 where the data needs to be entered. Is this possible? Any help at all would be appreciated.
    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: I need a message box to open up and display a message before printing.

    try this
    Please Login or Register  to view this content.
    Regards,
    amotto

    If I helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: I need a message box to open up and display a message before printing.

    Please Login or Register  to view this content.
    Regards,
    Vandan

  4. #4
    Registered User
    Join Date
    07-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: I need a message box to open up and display a message before printing.

    It is popping up the message box with the Yes and NO options, but it still prints when I select NO. Any advice?

  5. #5
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: I need a message box to open up and display a message before printing.

    Try my code in post #3 or

    change
    if box = No then
    to
    if box = vbNo then

    in post #2

  6. #6
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: I need a message box to open up and display a message before printing.

    try mine and instead of no put vbno in the if statement

  7. #7
    Registered User
    Join Date
    07-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: I need a message box to open up and display a message before printing.

    Got it, thanks you guys rock.

+ 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