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:
Thanks for your helpPlease Login or Register to view this content.
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:
Thanks for your helpPlease Login or Register to view this content.
Last edited by sulavsingh6; 04-15-2009 at 11:40 AM.
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!)
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
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.
Thank you very much. That did it.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks