+ Reply to Thread
Results 1 to 3 of 3

Message box pop-up with button

  1. #1
    Registered User
    Join Date
    04-20-2012
    Location
    USA
    MS-Off Ver
    2007, 2010
    Posts
    2

    Question Message box pop-up with button

    Hello All,

    I am trying to make a conditional message box pop up with 2 buttons as options to click:

    1. Send email
    2. Cancel

    Option 1 should evoke the following (unless you know of a better way to accomplish this task):
    Please Login or Register  to view this content.
    End Sub

    I am not exactly well-versed on macros. Any help would be greatly appreciated.

    Thank you.
    Last edited by Leith Ross; 04-20-2012 at 04:32 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Message box pop-up with button

    Hello skier87,

    Welcome to the Forum!

    Since the choice is to send an email or not, you can add the buttons "Yes" and "No" the message box. Here is how...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    04-20-2012
    Location
    USA
    MS-Off Ver
    2007, 2010
    Posts
    2

    Re: Message box pop-up with button

    --------------------------------------------------------------------------------
    Thanks a lot, this works perfectly!

    I would like to edit the conditions for the popup message. Here is what I am trying to do:

    - I have a row of numbers 1-31, resembling a calendar.
    - Beneath each number, the user may enter '1' or leave it blank.
    - If there are more than 2 events (1's) marked in any given 15-day period (within the same month), the pop-up will be displayed asking the user to send the email.

    Here is my idea:

    - Set the popup conditions to be based on several ranges encompassing the entire calendar month

    For example, include several ranges in the code instead of just B4:P4, which are the cells below days 1-15. So, it would be B4:P4, C4:Q4, D4:R4, etc...

    Please Login or Register  to view this content.
    The problem is that I cannot seem to get multiple ranges to work properly. Usually I end up with too many popup messages coming up all at once, or they come up even when the conditions are not met.

    Hope that makes sense. Feel free to change it up entirely if you think there is a way to do this which makes more sense.

    Thanks!

+ 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