Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Here's the code, put it in a regular module and assign it to a "button". If
you put a 1 in C1 it will increment any selected Date/time cell by 1 hour, if you put a 2 in C1, by 2 hours, etc. Sub update() Selection.Value = Selection + (Range("c1").Value / 24) End Sub Vaya con Dios, Chuck, CABGx3 "RMF" wrote: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
checking that cells have a value before the workbook will close | Excel Worksheet Functions | |||
Linking cells in a worksheet to other worksheets in a workbook | Excel Discussion (Misc queries) | |||
Reference cells from another worksheet problem | Excel Discussion (Misc queries) | |||
Unlocking Cells when a worksheet is protected... | Excel Discussion (Misc queries) | |||
moving mouse highlights cells without touching left mouse button | Excel Discussion (Misc queries) |