Forum

Add a Date Updated ...
 
Notifications
Clear all

Add a Date Updated column to Excel Table

10 Posts
3 Users
0 Reactions
101 Views
(@paulas)
Posts: 4
Active Member
Topic starter
 

Hello,

I have an Excel table that multiple users where multiple users will enter and change records. I would like to have a column that will populate with the current date when any data in that row is changed. Can someone provide the code for this. I found a code online that does this, but it applies to all rows on the worksheet. I would like it to only apply to table rows. Thank you!

 
Posted : 22/07/2016 8:00 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi PaulaS

Refer my attachment.

It uses a worksheet change event to find the row that was changed and add today's date to column 1 of that row.

Hope this helps.

Sunny Kow

 
Posted : 22/07/2016 8:29 pm
(@paulas)
Posts: 4
Active Member
Topic starter
 

Thanks for the reply and code, Sunny. This isn't what I'm looking for. I would like code that references only the table data, not the entire worksheet. For example, if the table is in B1:Q50 (headers in Row 1), with column Q header "Date Revised", I would like the code to only populate in Q2:Q50. If 3 table rows are added, the code would populate Q2:Q53. 

 
Posted : 24/07/2016 6:55 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi PaulaS

See if this is what you are looking for.

From your reply above, I am not sure if you want to populate the entire column Q (Date Revised) with today's date or only for that particular row.

I populated the entire column Q (Date Revised) in my attachment.

Sunny Kow

 
Posted : 24/07/2016 9:00 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi PaulaS

This attachment can update either entire column or specific row in column Q (Date Revised).

Just modify the codes.

Sunny Kow

 
Posted : 24/07/2016 9:32 am
(@paulas)
Posts: 4
Active Member
Topic starter
 

That's it! The code only adds the date if the row is in the table. Thank you very much.

 
Posted : 24/07/2016 9:36 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi PaulaS

Glad that helps

Sunny KowCool

 
Posted : 25/07/2016 1:26 am
(@david_ng)
Posts: 310
Reputable Member
 

A bit lost and sorry , pls show how to run this VB..

 
Posted : 13/01/2017 11:58 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi David

The macro uses a worksheet change event (no need to run the macro).

Any changes to a cell's value within the Table will trigger the macro automatically.

The macro will then display today's date in column Q (same row as the cell that was changed) to indicate that the cell was changed (revised) on that date.

Sunny

 
Posted : 14/01/2017 12:14 am
(@david_ng)
Posts: 310
Reputable Member
 

Oh I see thanks Sunny !

 
Posted : 14/01/2017 1:43 am
Share: