+ Reply to Thread
Results 1 to 7 of 7

Date Stamp one column based on set data in another column

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Mt barker,Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    16

    Date Stamp one column based on set data in another column

    Hi All,
    I have a worksheet that has a column marked Status... In this column there is one two answers "Completed" or "Incomplete"
    I also has a column marked "date training completed". How can i get excel via Vb macro to enter a static date in Date training completed column when Completed entered in STATUS column.
    I need this for the whole range in STATUS Column.
    I have tried uploading a example of the workbook but our IT dept Blocked.
    Status Cells are L4:L25
    Need date in E4:E25

    Many Thanks In Advance
    Last edited by HACCStaff; 04-10-2013 at 01:02 AM.

  2. #2
    Registered User
    Join Date
    12-18-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Date Stamp one column based on set data in another column

    Hi HACCStaff,

    You can try a solution using like this. I would first of all set up an event triggered macro in either the worksheet module (if you only want this to work on the particular sheet only) or the Thisworkbook module (if you want it to work on all sheets in the workbook). Assuming you only want to get it to work on a particular sheet, right click on the sheet tab and chose View code. Then paste this in:

    Please Login or Register  to view this content.
    If you type a 1 in cells A1 to A10 then the next column should write the date for you.

  3. #3
    Registered User
    Join Date
    04-09-2013
    Location
    Mt barker,Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Date Stamp one column based on set data in another column

    Hi J450n,
    Unfortunately nothing changed. No dates appeared. I changed the 1 to Completed. I have also put more information in post. I am working on a single worksheet.
    Thanks for your help

  4. #4
    Registered User
    Join Date
    12-18-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Date Stamp one column based on set data in another column

    Hi again,

    I tested the code on a blank workbook before I posted it and it worked fine. Maybe you should try that 1st too, and see if it triggers ok.
    Did you paste this into your actual sheet, if so did you remember to change the intersect area from range("A1:A10") to the actual range you need???
    If you do try this in a new sheet, and nothing happens, have you at some stage turned off the event trigger? if so you need to run "Application.EnableEvents = True" to reset the mode i think.
    Hope this helps.

  5. #5
    Registered User
    Join Date
    04-09-2013
    Location
    Mt barker,Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Date Stamp one column based on set data in another column

    I have tested on blank workbook and same thing happens.
    Yes i changes range to L4:L25
    I dont remember doing an event trigger as i dont know what it is
    I have checked an event trigger set to true
    Last edited by HACCStaff; 04-10-2013 at 01:46 AM.

  6. #6
    Registered User
    Join Date
    12-18-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Date Stamp one column based on set data in another column

    press alt + F11, then Ctrl + G. type or paste in Application.EnableEvents = True and hit enter. That should do it . Else you can make up a simple sub() and put it in there and run it.
    Hope this solves it for you, as i have to go offline very shortly. Good luck.

  7. #7
    Registered User
    Join Date
    12-18-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Date Stamp one column based on set data in another column

    Last min before i'm away!
    try this instead:
    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