+ Reply to Thread
Results 1 to 2 of 2

keep track of changes in the cells as comments

  1. #1
    Registered User
    Join Date
    05-19-2014
    MS-Off Ver
    Excel 2003
    Posts
    12

    keep track of changes in the cells as comments

    Hi There , I have this VBS which I found online which keep track of changes in the cells as comments in the affected cell.

    Option Explicit
    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim x As Variant, y As Variant

    If Target.Count > 1 Then Exit Sub
    Application.EnableEvents = False
    x = Target.Value
    Application.Undo
    y = Target.Value
    Target.Value = x
    Application.EnableEvents = True

    Target.NoteText Text:=Target.NoteText & Chr(10) & "Old value " & y _
    & " changed to " & x & " on " & Format(Date, "mm-dd-yyyy") _
    & " by " & Environ("username")

    Target.Comment.Shape.AutoShapeType = msoShapeRoundedRectangle
    Target.Comment.Shape.TextFrame.AutoSize = True
    End Sub

    But I will need to use it only for column T (Date value) to register changes in dates of these columns/Cells, great if someone can help

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Exclamation Re: keep track of changes in the cells as comments


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. keep track of changes in the cells as comments in the affected cell.
    By srvgonzalez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2015, 01:17 PM
  2. Need a macro to extract track changes and comments from Word to Excel
    By serene11111 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2014, 06:35 PM
  3. Replies: 3
    Last Post: 09-24-2012, 08:32 AM
  4. Add comments to cells using VBA (comments from list)
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2010, 12:11 PM
  5. Help required in the Macro for extracting the track changes and comments
    By karthunairh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2005, 06:05 AM

Tags for this Thread

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