+ Reply to Thread
Results 1 to 8 of 8

Auto Open With Message Box But Alternate Messages

  1. #1
    Registered User
    Join Date
    11-21-2013
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Auto Open With Message Box But Alternate Messages

    Can you please help me with this problem?

    I would like to modify the Auto Open macro whereby depending on the day of the week the message box will display different text.

    Eg if you open the file on:
    Monday the message box will display "Are you ready for another big week of work?",
    whereas if you open it on Friday the message box will display "Put in a big effort for the last day of the week!".
    Tuesday, Wednesay and Thursday will also say something different.

    I will probably use different text than the example above, but you get the idea.

    Any assistance will be greatly appreciated.

    Thank you.

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Auto Open With Message Box But Alternate Messages

    Hi Gusto747, try this and edit the text for each weekday:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-21-2013
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Auto Open With Message Box But Alternate Messages

    Hi berlan,

    You are a champ.

    My first attempt using your script worked.

    Thank you.

  4. #4
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Auto Open With Message Box But Alternate Messages

    Glad to help

  5. #5
    Registered User
    Join Date
    11-21-2013
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Auto Open With Message Box But Alternate Messages

    Hi berlan,

    Sorry to bother you but there is one more modification I want to achieve.

    Can you help me change the message box title from "Microsoft Excel" to something like "Gusto747's Program"

    My attempts have been futile.

    Thanks in advance.

  6. #6
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Auto Open With Message Box But Alternate Messages

    Quote Originally Posted by Gusto747 View Post
    Hi berlan,

    Sorry to bother you but there is one more modification I want to achieve.

    Can you help me change the message box title from "Microsoft Excel" to something like "Gusto747's Program"

    My attempts have been futile.

    Thanks in advance.
    Hi again,

    Then try this:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-21-2013
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Auto Open With Message Box But Alternate Messages

    If I had my way I would give you a pay rise!

    Or at the very least send you coffee however it would be cold by the time it got to Sweden.

    You are good! - In expertise and in deed.
    Thank you so much.

  8. #8
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Auto Open With Message Box But Alternate Messages

    @Gusto747, he he, many thanks!! Glad to have been able to help!

    All best

+ 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] Automatically hit OK to message box in auto-open of another worksheet
    By ajaykgarg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2013, 12:35 AM
  2. Replies: 2
    Last Post: 08-03-2012, 05:28 PM
  3. How to use conditional messages in a message box?
    By max3732 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2012, 12:39 AM
  4. [SOLVED] Flashing message in cell (alternate font and background colors)
    By vvaidya@pol.net in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2005, 11:05 AM
  5. [SOLVED] message/dialog box auto open when excel file is activated
    By welshwizzard in forum Excel General
    Replies: 3
    Last Post: 01-21-2005, 07:06 PM

Tags for this Thread

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