+ Reply to Thread
Results 1 to 3 of 3

Date of last row formatted

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Date of last row formatted

    I have rows of info. I want to create a date at the end of each row showing the last time info was altered in the specific row in the cells of columns A, B, or D.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Date of last row formatted

    Search the forum for date stamp for many, many examples.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: Date of last row formatted

    Thx... found what i'm looking for below

     Private Sub Worksheet_Change(ByVal Target As Excel.Range)
            With Target
                If .Count > 1 Then Exit Sub
                
                
                If Not Intersect(Range("A5:A2000"), .Cells) Is Nothing Then
                    Application.EnableEvents = False
                    If IsEmpty(.Value) Then
                        .Offset(0, 7).ClearContents
                    Else
                        With .Offset(0, 7)
                            .NumberFormat = "dd mmm yyyy"
                            .Value = Date
                        End With
                    End If
                    Application.EnableEvents = True
                End If
                
                If Not Intersect(Range("b5:b2000"), .Cells) Is Nothing Then
                    Application.EnableEvents = False
                    If IsEmpty(.Value) Then
                        .Offset(0, 6).ClearContents
                    Else
                        With .Offset(0, 6)
                            .NumberFormat = "dd mmm yyyy"
                            .Value = Date
                        End With
                    End If
                    Application.EnableEvents = True
                End If
                
                
                
            End With
        End Sub
    Last edited by Xx7; 02-13-2011 at 08:20 PM.

+ 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