+ Reply to Thread
Results 1 to 2 of 2

How do I create a message box that only appears from some pages

  1. #1
    Registered User
    Join Date
    05-29-2015
    Location
    Providence
    MS-Off Ver
    2013
    Posts
    32

    How do I create a message box that only appears from some pages

    How could you create a message box that only appears when a user is running a macro from a specific page.

    For example, I have a navigation bar for a model that runs the side of each worksheet with macro buttons that allow movement between pages. When a user moves from the first page "Directions" to the second "General" I want an error box to appear encouraging the user to read the directions before moving on. However, I do not want this same message box to appear as the user goes from say, page three "Inputs" to page two "General".

    Any help is greatly appreciated.

    This is what I have right now:

    If MsgBox("Are you sure you want to delete Column G? Data will be unrecoverable!", vbYesNo) = vbNo Then Exit Sub

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: How do I create a message box that only appears from some pages

    Hi djl295,

    Try something like the following:
    Please Login or Register  to view this content.
    Lewis
    Last edited by LJMetzger; 05-29-2015 at 05:49 PM. Reason: Corrected logic error in Macro

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Message box which appears when a cells contents are 0 or less
    By Nic31 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2014, 08:59 PM
  2. how to get message box to appear when a value appears anywhere within a column
    By cwright in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-10-2012, 04:28 PM
  3. Border appears on two different pages
    By Robotaz in forum Excel General
    Replies: 3
    Last Post: 12-31-2009, 08:38 PM
  4. [SOLVED] Delete browsed pages list that appears when setting up Hyperlink
    By Dennis in forum Excel General
    Replies: 0
    Last Post: 06-06-2006, 08:35 PM
  5. How to create a message that appears when opening an excel file
    By R. in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2005, 02:05 PM

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