Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Excel Newsgroups
Excel Programming
Adding a date timestamp to the last column of a spreadsheet
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Bob Phillips, post: 6161159"] Is this any better? With ActiveSheet If sId > 5 Then LastRow = .UsedRange.Rows.Count - .UsedRange.Row - 1 LastCol = .UsedRange.Columns.Count + .UsedRange.Column - 1 .Rows("1:1").Insert shift:=xlDown With .Range("A1") .Value = 1 .AutoFill Destination:=Range(Cells(1, 1), Cells(1, LastCol + 1)), Type:=xlFillSeries End With .Cells(2, LastCol + 1).Resize(LastRow).Value = Format(Date, "mm/dd/yyyy") End If End With -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Excel Newsgroups
Excel Programming
Adding a date timestamp to the last column of a spreadsheet
Top