Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formula For CTRL+SHIFT+;

We are looking for a way to program a cell(s) to post the current time when a
certain action is done. The idea is like a time clock for our employees to
record start times and ending times. It will then be used by other worksheets
within the workbook to record employee payroll and other information for our
business. ( ex. one keystoke to record current time)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Formula For CTRL+SHIFT+;


Sub InsertTime()
With ActiveCell
.NumberFormat = "hh:mm:ss"
.Value2 = Time
End With
End Sub

more logical would be to avoid dependency on activecell
and make it ready to be called as a subroutine..

Sub InsertTime2(rng as range)
With rng.cells(1)
.NumberFormat = "hh:mm:ss"
.Value2 = Time
End With
End Sub

HTH


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


donscarwash wrote :

We are looking for a way to program a cell(s) to post the current
time when a certain action is done. The idea is like a time clock for
our employees to record start times and ending times. It will then be
used by other worksheets within the workbook to record employee
payroll and other information for our business. ( ex. one keystoke to
record current time)

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
ctrl+shift+arrow does not highlight but ends formula when typing Excel-lent Excel Worksheet Functions 0 August 24th 09 08:59 PM
F9, Shift+F9, Ctrl+Alt+F9 etc john1978 Excel Discussion (Misc queries) 3 August 20th 09 10:35 AM
What does hitting Ctrl + Shift + Enter to enter a formula do??? Help a n00b out. qwopzxnm Excel Worksheet Functions 2 October 20th 05 09:06 PM
CTRL+SHIFT+END RichardG Excel Programming 3 October 7th 04 04:58 PM
What does CTRL-ALT-SHIFT-F4 do? R Avery Excel Programming 7 June 2nd 04 01:57 PM


All times are GMT +1. The time now is 10:12 AM.

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"