+ Reply to Thread
Results 1 to 5 of 5

Code for popup box asking for date input

  1. #1
    Forum Contributor
    Join Date
    11-25-2011
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    107

    Code for popup box asking for date input

    I need a VBA code that will find a sheet "Missing Date" and
    Pop up input box will open asking "Please input date".
    Once the user inputs date in pop up box code should change the name of the sheet "Missing Date" to date that was inputed in pop up box. Format of the date should be for example: 10-21-12

    Thank you

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Code for popup box asking for date input

    hi,
    just see if it helps you
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-25-2011
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    107

    Re: Code for popup box asking for date input

    Quote Originally Posted by john55 View Post
    hi,
    just see if it helps you
    Please Login or Register  to view this content.
    Thanks so much code work perfect, only issue I have is that when pop up box open. User can put date in any format and that creates a problem for other calculations.
    Is there any way that input can only be limited to mm-dd-yy and any other format would not be accepted.

  4. #4
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Code for popup box asking for date input

    hi, try this
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Code for popup box asking for date input

    hi jimstrongy,
    thx for rep!
    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Click the Edit button on your first post in the thread,
    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

+ 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