How to update workseet DATE on SAVE

  • Thread starter Scott Partridge
  • Start date
S

Scott Partridge

I have a shared workbork where each user has a personal
worksheet that they view and/or update on a regular basis.

I have a date on each worksheet that I would like to
automatically update ONLY wen the user edits the
worksheet and saves te change, not when they simply open
it and view it.

I'm iterating to the correct solution, but some direct
guidance would help me speed up the process.

Thank you in advance for any help.
 
F

Frank Kabel

Hi
one solution could be using the worksheet event
worksheet_change. e.g. enter the following code in each of
the relevant worksheets.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
if intersect(target,me.range("A1:X100")) is nothing then
exit sub
application.enableevents=false
me.range("A1").value=date
application.enableevents=true

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top