+ Reply to Thread
Results 1 to 5 of 5

once cell E1 is entered need input box for date to be populated in B1

  1. #1
    Registered User
    Join Date
    03-25-2013
    Location
    Delaware, OH
    MS-Off Ver
    Office 2019/Office 365
    Posts
    65

    once cell E1 is entered need input box for date to be populated in B1

    I am somewhat new to VBA and did not find anything in a search so thought I would try this question. Once I enter data in cell E1 I would like an input box to ask for a due date. Once the due date is entered I would like it to be put in cell B1. I would also like the date to be formatted as such, mm/dd/yy 12:00 PM. Thank you to anyone that can help. It is greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: once cell E1 is entered need input box for date to be populated in B1

    Right Click on your sheet name at the bottom of excel and select view code.

    Paste this code there

    Close Visual Basic.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-25-2013
    Location
    Delaware, OH
    MS-Off Ver
    Office 2019/Office 365
    Posts
    65

    Re: once cell E1 is entered need input box for date to be populated in B1

    Thanks for the response, however I am getting a "Compile error: Ambiguous name detected: Worksheet_Change." I do have other code in the worksheet and I suspect it needs to be somehow within the rest of the code. I also would like to have this input box open for every line in the worksheet from line 1 on. Sorry I didn't mention that earlier. I have attached a snapshot of my code. Thanks for the help thus far.

    Code.JPG

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: once cell E1 is entered need input box for date to be populated in B1

    Ok

    Insert this line into your existing Change Worksheet Code

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: once cell E1 is entered need input box for date to be populated in B1

    Ok

    Insert this line into your existing Change Worksheet Code

    Please Login or Register  to view this content.

+ 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. Retain date format for input entered as date
    By Chippi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-24-2014, 07:20 AM
  2. Replies: 5
    Last Post: 11-11-2013, 11:15 AM
  3. [SOLVED] Prompt input of future date in cell when another cell has been populated or modified
    By coffeemints in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2013, 06:46 PM
  4. [SOLVED] Cell not remaining blank when input field is not populated
    By JRose0303 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-17-2012, 12:55 PM
  5. [SOLVED] Input Date when data is entered into another cell
    By GaryByrd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2005, 09:06 PM

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