+ Reply to Thread
Results 1 to 3 of 3

Displaying message box based on user input.

  1. #1
    Forum Contributor
    Join Date
    05-19-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    107

    Displaying message box based on user input.

    I currently have a macro that asks a user to enter their initials before it runs as it logs who is using the macro.
    Please Login or Register  to view this content.
    At the end of the macro I have a msgbox that displays a thank you message.
    Please Login or Register  to view this content.
    Example: If I enter CJH as my initials the Msgbox says...
    Thank you cjh. Enjoy your day.

    I would like it to look through an array and substitue the name. So If I enter CJH it will say.....
    Thank you Chad. enjoy your day.
    Last edited by CJPHX; 07-22-2010 at 10:30 AM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Displaying message box based on user input.

    I'd tend to do this by storing the initial and user name on a hidden sheet within the workbook with one column for user initials and one column for their name.

    That way you could match the initials using a .find (which wouldn't be case sensitive) and it would save you having to define the list of users programmatically.

    i.e.

    Please Login or Register  to view this content.
    Last edited by Andrew-R; 07-22-2010 at 09:18 AM.

  3. #3
    Forum Contributor
    Join Date
    05-19-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    107

    Re: Displaying message box based on user input.

    thank you Andrew. That worked great.

+ 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