+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Insert DATE if any Cell in Row changed

Hybrid View

  1. #1
    Registered User
    Join Date
    03-18-2011
    Location
    Buckingham Palace
    MS-Off Ver
    Excel 2003
    Posts
    2

    Red face Insert DATE if any Cell in Row changed

    I have a spreadsheet of Sales Funnel data where columns A through J are typical sales fielded information.

    I'd like to use column L to insert a DATE if any of the cells on that row in columns A-J are changed/update by sales personnel.

    I'd appreciate tips from learned excel programmers.
    Last edited by varocketry; 03-18-2011 at 10:41 AM. Reason: Solution provided by GURU Jerry

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Insert DATE if any Cell in Row changed

    You're correct that this will require VBA. Which means this probably should have been posted in the Programming forum. Oops.

    Right-click the sheet tab and select VIEW CODE, then paste in this macro:

    Option Explicit
    
    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim cell As Range
    
    For Each cell In Target
        If Not Intersect(cell, Range("A:J")) Is Nothing Then
            If cell <> "" Then
                Application.EnableEvents = False
                Range("L" & cell.Row) = Date
                Application.EnableEvents = True
            End If
        End If
    Next cell
    
    End Sub
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-18-2011
    Location
    Buckingham Palace
    MS-Off Ver
    Excel 2003
    Posts
    2

    Smile Re: Insert DATE if any Cell in Row changed

    WOW, GURU is right.
    Thanks Jerry

  4. #4
    Registered User
    Join Date
    12-03-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Insert DATE if any Cell in Row changed

    Hello Jerry,
    Thankyou.
    Sincerely,
    Tim

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Insert DATE if any Cell in Row changed

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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