+ Reply to Thread
Results 1 to 5 of 5

Put input into a cell in file

  1. #1
    Registered User
    Join Date
    04-13-2009
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    34

    Put input into a cell in file

    Hi, I am trying to prompt excel to ask for a date if a cell C3 is empty. And then I am trying to place the value entered into cell C3.

    my code is as follows:

    Please Login or Register  to view this content.
    Thanks for your help
    Last edited by sulavsingh6; 04-15-2009 at 11:40 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Put input into a cell in file

    Hello sulavsingh6,

    This will enter the date and verify it is a valid date. If it is not a valid date, the user is notified and asked again to input the date.
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 04-15-2009 at 11:17 AM. Reason: Corrected Spelling
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    04-13-2009
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Put input into a cell in file

    thanks that worked. I have a quick question though. Is there a way to make sure that the code runs instead of having to run the macros manually everytime. Right now after the prompt comes up and you enter a year it displays the year. If you then delete they year the prompt does not show up again.

    thanks

  4. #4
    Registered User
    Join Date
    04-14-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    54

    Re: Put input into a cell in file

    Maybe try putting the code in sheet chage event and check if the target is the cell that has been changed. If so call the method again.

  5. #5
    Registered User
    Join Date
    04-13-2009
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Put input into a cell in file

    Thank you very much. That did it.

+ 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