Application Event ??

ColinKJ

Well-known Member
Joined
Jan 27, 2009
Messages
983
Hi All,

Anyone know if there is an Application Event that I could use, so that whenever XL is open, irrispective of what workbook (if any) is loaded, I can use a key combination to open a specific workbook without having to use the Open function.

Alternatively, can I create an Application Event.

Regards

ColinKJ
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Try adding a macro to the personal.xls

See here for a good tutorial
http://exceltip.com/st/Adding_a_Custom_Keyboard_Shortcut/646.html

To create the Personal Macro Workbook while storing a new keyboard shortcut:

1. From the Tools menu, select Macro, and then Record New Macro.
2. In the Macro name box, insert a name for the macro (no spaces are allowed between characters).
3. In the Shortcut key box, press Shift+ V.
4. Choose Personal Macro Workbook from the Store macro in dropdown list, and click OK.
5. Record anything you like and then stop recording by pressing the Stop Recording icon.
6. Open the VBE (Visual Basic Editor) by pressing Alt+F11.
7. Double-click Module1 under VBAProject (PERSONAL.XLS).
8. In the PasteValues macro, replace the lines recorded with:
Selection.Formula = Selection.Value
This code converts a selected cell's formula to its current value.
9. Click Save.
10. Press Alt+F4 to close and then reopen Excel.
11. To determine if PERSONAL.XLS is open, select Unhide from the Windows menu.
12. To check the keyboard shortcut, select cells containing formulas, and press Ctrl+Shift+V.
 
Upvote 0
Quickly tested this myself and works fine.

Sub Macro2()
'
' Macro2 Macro
' Macro recorded 8-3-2009 by Shyrath
'
' Keyboard Shortcut: Ctrl+Shift+C
'
Workbooks.Open Filename:="C:\Documents and Settings\User\My Documents\$WORK\$ test.xls"
End Sub
 
Upvote 0

Forum statistics

Threads
1,222,313
Messages
6,165,285
Members
451,949
Latest member
bovacik

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top