+ Reply to Thread
Results 1 to 2 of 2

Record timestamp in one column automatically

  1. #1
    Registered User
    Join Date
    02-10-2009
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2003
    Posts
    1

    Record timestamp in one column automatically

    Hi all,

    I am using a section of code to automatically update a column with date/time stamp and it works perfectly, I am looking for a way to do this twice in the same spreadsheet though. I.e. when someone updates Column B, Colum C is updated and when someone updates Column D, Column E is updated. Need the same to occur when columns F and G are updated too. Below is the code I am currently using:

    Private Sub Worksheet_Change(ByVal Target As Excel.Range)
    If Target.Column = 2 Then
    Target.Offset(0, 1).Value = Now()
    End If
    End Sub

    Please helP! Thanks...

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: Record timestamp in one column automatically

    springa,

    Please edit your post to include code tags and avoid hijacking a thread again.

    These are the two rules you have broken
    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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