+ Reply to Thread
Results 1 to 14 of 14

Macro for prompting date entry

  1. #1
    Registered User
    Join Date
    09-08-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    20

    Macro for prompting date entry

    Hi all, I need to create a condition in which a input prompt pops up for date entry.

    I have two problems currently present in my spreadsheet. The first one is that i need to have the message of the equation
    Please Login or Register  to view this content.
    displayed in the cell upon fulfilling the condition followed by the prompting of entry of the date.

    The second problem I currently face is that I can't seem to get the date format to display in the input box as it only displays numbers.

    Please Login or Register  to view this content.
    If anyone could provide some help to where I went wrong, that would be greatly appreciated.
    Last edited by Armored Wing; 01-17-2012 at 10:55 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Macro for prompting date entry

    Your first problem is not clearly described.
    For Your second problem use the following code instead

    Please Login or Register  to view this content.
    Regards,
    Khaled Elshaer
    www.BIMcentre.com

    Remember To Do the Following....
    1. Thank those who have helped you by clicking the Star below their post.
    2. Mark your post SOLVED if it has been answered satisfactorily:
    • Select Thread Tools (on top of your 1st post)
    • Select Mark this thread as Solved

  3. #3
    Registered User
    Join Date
    09-08-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Macro for prompting date entry

    All right I have uploaded the sheet that I am currently working on. First, the second code worked so I want to thank you Kelshaer. My first problem now is that when any cell becomes "pending" in column F, I would like the date entry code to execute corresponding to the cell that become pending (so if cell F10 became pending, A10 would pop up the date prompt), otherwise the code won't execute at all. I hope that help clear up some confusion anyone might have.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Macro for prompting date entry

    Here you go

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-08-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Macro for prompting date entry

    I tried it out but the prompt does not pop up when pending display in F? Am I missing something?

  6. #6
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Macro for prompting date entry

    Its working for me
    Please find the attached file
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-08-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Macro for prompting date entry

    Ok the macro does work on the active row and cell but is that a way to make it automatically appear the f column being turned into pending? Since I still have to double click it in order for the box to show up.
    Last edited by Armored Wing; 01-13-2012 at 02:33 PM.

  8. #8
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Macro for prompting date entry

    If you mean to make it launch without considering which column was double clicked then use this:
    Although i dont recommend it this way as you might double click any other column to enter data.
    Please Login or Register  to view this content.
    Last edited by Kelshaer; 01-13-2012 at 02:35 PM.

  9. #9
    Registered User
    Join Date
    09-08-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Macro for prompting date entry

    I guess what I want is that instead of double clicking, the moment that the cell F10 becomes pending, the cell in A10 will automatically prompt the user in entering a date which will display in cell A10. I don't know if that is feasible or not.

  10. #10
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Macro for prompting date entry

    Hope this will work


    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    09-08-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Macro for prompting date entry

    It auto opens now but now an error message displays the run-time error 1004 with the range being the object that failed.
    Please Login or Register  to view this content.

  12. #12
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Macro for prompting date entry

    So Sorry, My mistake.
    Here is it:


    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    09-08-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Macro for prompting date entry

    Please don't apologize for the errors, I just wish I was better at VBA so I can complete harder tasks. However, I am extremely grateful for your help, but I was wondering if you could help me out with one last thing. Using the code that you wrote, now I have to apply it to my finalized spreadsheet in which the columns which are pending will automatically prompt the user. I tried the code out but was unable to get the box opened. I will upload the finalized sheet for your reference.

    Once again, I am extremely grateful for your help.
    Attached Files Attached Files

  14. #14
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Macro for prompting date entry

    Try this one

    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)

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