ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Date Update (https://www.excelbanter.com/excel-programming/290221-date-update.html)

tim

Date Update
 
How can i have a macro find a date at the end of a column and then update it to the next cell, in visual basic code

Bob Phillips[_6_]

Date Update
 
Tim,

cLastRow = Cells(Rows.Count,"A").End(xlUp).Row

gets the last cell in column A. By update next, do you mean add 1 day to the
date? If so, then

Cells(cLastRow+1,"A").Value = Cells(cLastRow,"A").Value + 1

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Tim" wrote in message
...
How can i have a macro find a date at the end of a column and then update

it to the next cell, in visual basic code




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

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