+ Reply to Thread
Results 1 to 5 of 5

Message box with multiple cells

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    40

    Message box with multiple cells

    Hello,

    Is there a way to set up a message box that will ask for the date in three different "cells" in the same message box?

    For instance, Month__ Day__ Year__ where each __ represents a different "cell" within the same message box?

    I need this to find a few different files that are all named by date but the dates happen to be in different formats.

    Thanks!!

    Shannon

  2. #2
    Forum Contributor
    Join Date
    03-15-2007
    Location
    AL, USA
    MS-Off Ver
    2007
    Posts
    174

    Re: Message box with multiple cells

    I'm not exactly sure what you are asking, but I think to do what you need, you will have to build a userform. In your VB editor, click insert, then userform. Add three textboxes and labels for them, and a command button. Then, you can use those texboxes in your code.

  3. #3
    Registered User
    Join Date
    08-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: Message box with multiple cells

    I am not terribly familiar with userforms, but I will do some research and give it a shot.

    Thanks!

    Shannon

  4. #4
    Forum Contributor
    Join Date
    03-15-2007
    Location
    AL, USA
    MS-Off Ver
    2007
    Posts
    174

    Re: Message box with multiple cells

    they seem complicated at first, but they are simple in nature. When you create the extboxes in the userform, any input in the boxes will be captured and available for use in your macro. Usually, they are called Textbox1, Textbox2, etc. and you can assign the macro to run on the OK button or such. So after the user inputs those values, you can reference those in the macro that runs on OK. Here is a link I found useful when learning Userforms: http://www.excel-vba-easy.com/vba-us...excel-vba.html

  5. #5
    Registered User
    Join Date
    08-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: Message box with multiple cells

    Interesting. Thanks!

    Shannon

+ 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