![]() |
![]() |
|
|||||||
| 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: Apr 2002
Posts: 3
|
Trying to get input down to one key stroke, would like to set a function key to input time. Dave helped by informing me that current time can be captured by entering in CNTL+SHIFT+: Anyone know of a way to set a fuction key to these equivalent of these key strokes?
|
|
|
|
|
|
#2 | |
|
Board Regular
Join Date: Apr 2002
Posts: 113
|
Quote:
Sub SetKeys() Application.OnKey "{F2}", "mySub" End Sub ' Workbook_BeforeClose function Sub UnsetKeys() Application.OnKey "{F2}" End Sub Sub mySub() Application.SendKeys("^+:") End Sub |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|