Consulting

Results 1 to 6 of 6

Thread: How to enter date into pop up, which enters into spreadsheet

  1. #1

    How to enter date into pop up, which enters into spreadsheet

    Hey everyone! got a pretty silly question.
    I just need to have a pop up that asks for you to enter a date. The date that you enter needs to then be entered into specific cells (B2 - B93). Thanks in advance for all your help!

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    If you are going to be the only one using it you can use the native calendar control.....if you are going to share it with others I would suggest a different approach
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Here is a thread with a discussion of issues surrounding the acitveX calendar control.

    Click here
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  4. #4
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    [VBA]Sub dates()
    Range("B2:B93") = CDate(InputBox("Enter date dd/mm/yy"))
    End Sub
    [/VBA]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    I'm sorry, I should have read the question.....
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  6. #6
    THANKS everyone, code worked perfectly!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •