EarlA
asked on
How can I 'capture' the Ctrl-P while in Word 2007?
In Word 2003, I had a dot file in the Startup directory, which was loaded each time word started.
In this template, I coded a CtrlP subroutine, that captured the Ctrl-P keys, and allowed me to display my own Print dialog.
The question is, how can I get this to work in Word 2007? It does not seem to recognize the CtrlP subroutine, as it did in Word 2003 and before.
In this template, I coded a CtrlP subroutine, that captured the Ctrl-P keys, and allowed me to display my own Print dialog.
The question is, how can I get this to work in Word 2007? It does not seem to recognize the CtrlP subroutine, as it did in Word 2003 and before.
- Click on the Window icon at top left of the window
- Click on the Word Options button at the bottom of the resulting dialog
- Choose the Customize tab in the left pane
- Click the Customize button at the bottom of the resulting dialog
- Choose Macros in the left pane of the resulting dialog
- Choose to save changes in the document in the Save to field at left. The default is normal.dot, which you probably dont want.
- Select your macro in the right pane
- Click in the New Shortcut key field, then hit Control p
- Click the Assign button
If you want to undo your assignment, there is a Remove button that appears at step 8 if you instead select Control p in the Current shortcut key field.
ASKER
byundt,
Thanks - that works as a manual solution. Is there a way to update this short cut automatically? I don't want to have to go to each computer in my office to setup the Ctrl-P shortcut to point to my macro.
Thanks - that works as a manual solution. Is there a way to update this short cut automatically? I don't want to have to go to each computer in my office to setup the Ctrl-P shortcut to point to my macro.
ASKER
Is there anyway to automate this Ctrl-P in a Macro?
Thanks,
Earl
Thanks,
Earl
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Byundt,
Thanks- i didn't think of recording. That has given me enough of a headstart. I should be able to use KeyBindings.Add to get the Ctrl-P to use my macro.
Thanks- i didn't think of recording. That has given me enough of a headstart. I should be able to use KeyBindings.Add to get the Ctrl-P to use my macro.
ASKER
Byundt,
Using your last comment, I was able to figure out that KeyBindings.Add should give me the ability to reconfigured the Ctrl-P keystroke.
Thanks for the help.
Using your last comment, I was able to figure out that KeyBindings.Add should give me the ability to reconfigured the Ctrl-P keystroke.
Thanks for the help.