ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Adding a date stamp to each cell in column - after the fact (https://www.excelbanter.com/excel-discussion-misc-queries/84803-adding-date-stamp-each-cell-column-after-fact.html)

[email protected]

Adding a date stamp to each cell in column - after the fact
 
I'm looking to add the date to the end of the text of each cell in a
column after - or before - the information has been pasted from a word
document.


Jim May

Adding a date stamp to each cell in column - after the fact
 
The below code pasted into your particular Sheet module
only affects anything you paste into Column A of Excel.


Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Not Application.Intersect(Range("A:A"), Target) Is Nothing Then
Target.Value = Target.Value & "-" & Date
End If
Application.EnableEvents = True
End Sub

" wrote:

I'm looking to add the date to the end of the text of each cell in a
column after - or before - the information has been pasted from a word
document.




All times are GMT +1. The time now is 03:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com