![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 1
|
I want to assign 1 key instead of the shift+contro+: that I can tap to enter the current Hour:minute:second row by row in one column only.
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
Hi Molly
dare i ask why, two keys together or one single is all bar the same!
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Hi Molly,
How about the following: Private Sub Worksheet_SelectionChange(ByVal Target As Range) Target.Value = Format(Time, "hh:mm:ss") End Sub It is a worksheet event that is triggered by changing the selection on the worksheet. So it will put the current time in the selected cell. You can click the down arrow key (only one key) and it will fill in the row. I am not sure how familiar you are with VBA, but to enter this code...right click on your worksheet tab and select "View Code", then paste the code that I have provided into the big blank sheet. Then you should be ready. Post with further questions.
__________________
Kind regards, Al Chara |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|