Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dave Peterson
 
Posts: n/a
Default

If the problem with the macro and shared workbook is that you can't add any
procedures without unsharing the workbook, then how about adding another
workbook on that shared drive.

It's sole purpose would be to provide that shortcut.

After you create that workbook, you could hide it (windows|hide), close excel
and answer yes to the save prompt. Then the workbook will open hidden and
nobody will even know it's there.

Yes, the users will have to open it -- but just make that a training issue!

Here's some sample code that may get you started:

Option Explicit
Sub auto_open()
Application.OnKey "^T", "DoTimeDate"
End Sub
Sub auto_close()
Application.OnKey "^T"
End Sub
Sub DoTimeDate()
On Error Resume Next
With Selection
.NumberFormat = "mm/dd/yyyy hh:mm:ss"
.Value = Now
End With
On Error GoTo 0
End Sub


The shortcut is: ^T (control-shift-t (ctrl-T))



Michael Link wrote:

I know Excel provides shortcuts for entering the date (CTRL + ;) and the
time (CTRL + SHIFT + ;), but I really need one that will enter both the date
and time in the same cell at the same time. (Since Excel does provide
formatting for same-cell date and time, it seems kind of odd that there isn't
a shortcut to facilitate entry.) Is it possible to create an entirely new shortcut
that doesn't use macros? (This last point is important, since the workbook is
shared on a network.)

Any help anyone can offer would be much appreciated--I'm getting
desperate. Thanks in advance!


--

Dave Peterson
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
Creating shortcut keys Magnus Ramfelt via OfficeKB.com Excel Discussion (Misc queries) 1 January 21st 05 01:06 PM
Shortcut to format painter judith Excel Discussion (Misc queries) 2 January 17th 05 04:53 PM
Macro Shortcut Keys Nicolle K. Excel Discussion (Misc queries) 1 January 6th 05 04:55 PM
How to make [toggling] shortcut keys to superscript and subscript, respectively? Mann Lee Excel Discussion (Misc queries) 8 December 13th 04 01:50 PM
Is there a keyboard shortcut for centering data in Excel? Antartica Excel Discussion (Misc queries) 2 November 30th 04 05:30 PM


All times are GMT +1. The time now is 04:02 PM.

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

About Us

"It's about Microsoft Excel"