+ Reply to Thread
Results 1 to 4 of 4

I need to add a date to a cell but keep existing content

  1. #1
    Registered User
    Join Date
    08-14-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    3

    Lightbulb I need to add a date to a cell but keep existing content

    Hello
    First time posting so be gentle..

    I am using this code to track changes to cell H.
    Each time the cell is changed I would like to see the date in the next column.
    Currently it will only display the last change,
    What do i need to add to the code so the dates are stacked in the one cell.

    So if changes are made to cell H a date is added to cell I
    If another change is made to cell H a date is added beneath the first date still in Cell I.

    #
    Option Explicit

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("h:h")) Is Nothing Then
    Target.Offset(0, 1) = Date
    End If
    End Sub
    #
    Many Thanks

  2. #2
    Registered User
    Join Date
    02-20-2014
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: I need to add a date to a cell but keep existing content

    TedPennell,

    Firstly welcome to the forum!
    Just a quick note on your code - please ensure you wrap it in code tags (as per forum rules) - makes it easier to view code and maintains VBA formatting

    On the point of your issue, this code works:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-14-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    3

    Re: I need to add a date to a cell but keep existing content

    Excellent work, thank you for that.
    I have now seen the correct # option to use.

  4. #4
    Registered User
    Join Date
    02-20-2014
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: I need to add a date to a cell but keep existing content

    No problem - glad I could help

+ 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. [SOLVED] Formula for calculating a new date based on an existing date and other cell criteria
    By scsuflyboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-27-2013, 09:49 AM
  2. Macro to append a date to an existing cell if date is updated
    By brigitteMogg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-18-2013, 10:04 AM
  3. Create worksheet in masterfile and add content below existing content
    By Hond70 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2011, 09:21 AM
  4. [SOLVED] Appending to a cell content loses existing data formatting
    By DejaUser in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2006, 04:10 PM
  5. [SOLVED] Appending to a Cell doesn't keep format of existing content
    By DejaUser in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2006, 05:45 PM

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