+ Reply to Thread
Results 1 to 4 of 4

Dynamic Message Boxes

  1. #1
    Registered User
    Join Date
    11-01-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    52

    Dynamic Message Boxes

    Hello All,

    I'm having a bit of an issue that I am hoping one of you could help with.

    I'm hoping to script a macro that will check for one of 2 specific text results from a vlookup in a range.

    Basically, on sheet 1 I have a vlookup running from columns Y to AD, looking up a series of dates in columns P to U t check if any of them are either weekends or bank holidays. What I want is a msgbox to appear when the drop down in column F = "yes", and any of the returned results in columns Y to AD produce a result of either "Weekend" or "Bank Holiday"?

    I've attached a workbook which will hopefully make clearer what I am looking to do.

    Many Thanks.PBI tests.xlsx

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Dynamic Message Boxes

    Hi Mike,

    Here's some event code for your Sheet1:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    11-01-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic Message Boxes

    Hi xladept,

    Thank you so much for taking the time to look at this. Unfortunately I forgot to mention that the bank holiday or weekend phrases appearing in the target range, are generated by a formula, not being input by a user. Is there any way to tweak this code so that it reads the formula result?

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Dynamic Message Boxes

    Maybe:

    Please Login or Register  to view this content.

+ 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. [SOLVED] Message Boxes
    By RandyD123 in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 05-04-2015, 02:59 PM
  2. [SOLVED] Why Message Boxes Repeat?
    By Sgt Rock in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-07-2014, 04:27 PM
  3. Message Boxes
    By mnoles01 in forum Excel General
    Replies: 1
    Last Post: 02-24-2009, 12:57 PM
  4. Message Boxes
    By Kim_J in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-27-2008, 08:28 PM
  5. Message Boxes
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2006, 02:32 PM
  6. Message boxes
    By JaB in forum Excel General
    Replies: 1
    Last Post: 11-10-2005, 08:10 AM
  7. [SOLVED] Message Boxes.
    By Donny in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2005, 03:06 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