Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
RMF RMF is offline
external usenet poster
 
Posts: 6
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default 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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting text format of time/date into Excel time/date for subtr YY san.[_2_] Excel Worksheet Functions 6 February 25th 10 08:27 AM
Date/Time issue with Pivot Table Lori Excel Discussion (Misc queries) 3 December 7th 09 06:44 PM
how to increase counter every time open excel nipper Excel Discussion (Misc queries) 1 April 2nd 07 04:48 PM
time between table in word and current date robnwalker Excel Programming 0 December 6th 05 03:09 AM
I can increase to the number of columns in one excel table Andrea[_6_] Excel Programming 1 September 22nd 03 05:31 PM


All times are GMT +1. The time now is 06:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"