Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 699
Default Log specific changes

I have code in a workbook_BeforeSave event that Appends a txt file with an
entry that stamps user & date/time when the file is saved. I would like to
log any specific cells that are changed. The workbook has many worksheets and
I can conditionally choose the time period that I want to track the changes.
If cell $C$5 on sheet3 is changed, I want to log this and any other sheets
that are changed.

Thanks,

Sam
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Log specific changes

This code should give you a start. The allChanges variable will keep track
of each change made in the workbook. You may need to add additional code to
track the sheet the change was made on. This code should be put into the
ThisWorkbook module.

Public allChanges As String
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
allChanges = allChanges & "Cell(" & Target.row & "," & Target.Column & _
") changed to '" & Target.Value & "'" & vbCrLf
End Sub

"Sam" wrote:

I have code in a workbook_BeforeSave event that Appends a txt file with an
entry that stamps user & date/time when the file is saved. I would like to
log any specific cells that are changed. The workbook has many worksheets and
I can conditionally choose the time period that I want to track the changes.
If cell $C$5 on sheet3 is changed, I want to log this and any other sheets
that are changed.

Thanks,

Sam

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting specific rows with a specific criteria using inputbox Greg Excel Programming 2 April 10th 08 04:31 PM
Not allowing to continu unless a specific cell has specific answer madubois9 Excel Discussion (Misc queries) 3 October 25th 07 12:45 AM
Send data from userform to specific cell on specific sheet? JennLee Excel Programming 10 March 10th 07 02:55 AM
Link from a specific Cell in Excel to a specific para. in Word CathyK Excel Worksheet Functions 0 August 10th 06 04:40 PM
Form a circle (ie. color specific cells) given specific radius David Excel Programming 5 April 11th 06 03:56 PM


All times are GMT +1. The time now is 05:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"