Link to home
Start Free TrialLog in
Avatar of EarlA
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.
Avatar of byundt
byundt
Flag of United States of America image

 
  1. Click on the Window icon at top left of the window  
  2. Click on the Word Options button at the bottom of the resulting dialog  
  3. Choose the Customize tab in the left pane  
  4. Click the Customize button at the bottom of the resulting dialog  
  5. Choose Macros in the left pane of the resulting dialog  
  6. Choose to save changes in the document in the Save to field at left. The default is normal.dot, which you probably dont want.  
  7. Select your macro in the right pane  
  8. Click in the New Shortcut key field, then hit Control  p  
  9. 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.
Avatar of EarlA
EarlA

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.
Avatar of EarlA

ASKER

Is there anyway to automate this Ctrl-P in a Macro?

Thanks,

Earl
ASKER CERTIFIED SOLUTION
Avatar of byundt
byundt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of EarlA

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.
Avatar of EarlA

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.