![]() |
Increase the date/time in a excel table
Dear excel users,
I have a question. If have a worksheet with dates (my regional setting are e.g. 21-3-2006 15:00). I would like to be able to select a cell and then click on a button so I can increase the cell with for example 1 hour so I would get 21-3-2006 16:00. Any advise for me would be great because I am stuck. thnks and krgds, RMF |
Increase the date/time in a excel table
One way:
Put a Forms toolbar button on the sheet. Attach this macro: Public Sub AddHour_Click() If TypeOf Selection Is Range Then With ActiveCell If IsNumeric(ActiveCell.Value) Then _ .Value = .Value + 1 / 24 End With End If End Sub In article , RMF wrote: If have a worksheet with dates (my regional setting are e.g. 21-3-2006 15:00). I would like to be able to select a cell and then click on a button so I can increase the cell with for example 1 hour so I would get 21-3-2006 16:00. Any advise for me would be great because I am stuck. |
All times are GMT +1. The time now is 08:00 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com