+ Reply to Thread
Results 1 to 7 of 7

Would like to trigger a check mark in one column when date is entered in another

  1. #1
    Registered User
    Join Date
    12-01-2012
    Location
    Temecula, CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Would like to trigger a check mark in one column when date is entered in another

    Hi,
    I have entered the following code in the worksheet in order to produce a check mark on clicking in the cell:

    Please Login or Register  to view this content.
    and it works really well. However, I would now like to trigger the check mark when a date is entered in column H. I have it formatted as "mm.dd.yyyy". Is there any way to do this? I am not really very familiar with Excel and would appreciate any assistance possible. Hope I've done this right as it's my first post.
    Thanks

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Would like to trigger a check mark in one column when date is entered in another

    code revised to test for valid date in column-H cells
    Please Login or Register  to view this content.
    Last edited by Palmetto; 12-02-2012 at 09:41 PM. Reason: revised code
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    12-01-2012
    Location
    Temecula, CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Would like to trigger a check mark in one column when date is entered in another

    Thanks for the input, but unfortunately it doesn't work. I have removed the old code and pasted yours as above, but the font in Column H is in Marlett when entering the date and there is no resultant check mark in Column G. Am I doing something wrong?

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Would like to trigger a check mark in one column when date is entered in another

    I had forgotten to change the range string.
    If you want cells in column-G to get a check mark when a date is entered in column-H cells then the target range must be H3:H50.

    If the date is valid, then we offset one column to the left of the target and enter a checkmark.
    Is this what you intended?

    Code in prior post is revised and works per above.

  5. #5
    Registered User
    Join Date
    12-01-2012
    Location
    Temecula, CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Would like to trigger a check mark in one column when date is entered in another

    Thank you Palmetto! It works brilliantly, I was tearing my hair out...I am so grateful.
    Out of interest, can a custom date format be specified? I use mm.dd.yyyy rather than mm/dd/yyyy. It's no big deal but it would be interesting to know.
    Again, many thanks, really appreciate it.

  6. #6
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Would like to trigger a check mark in one column when date is entered in another

    Since you are working with a fixed range I would just format the date cells (column-H) using the normal Cell Format dialog.

    However, if you want to do this via code, then:
    Please Login or Register  to view this content.
    I think it is best, though, to use the default format.

  7. #7
    Registered User
    Join Date
    12-01-2012
    Location
    Temecula, CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Would like to trigger a check mark in one column when date is entered in another

    Thank you so much for all your help. I did format the H Column using the Cell Format dialog, but it doesn't work, so I will try the code. I really appreciate you taking the time to solve my problem, great forum.

+ 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