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.
Microsoft Word

Avatar of undefined
Last Comment
EarlA

8/22/2022 - Mon
byundt

 
  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  
byundt


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.
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.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
EarlA

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

Thanks,

Earl
ASKER CERTIFIED SOLUTION
byundt

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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.
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.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.