PDA

View Full Version : Onkey analogue



melotron
01-12-2007, 04:10 AM
Hello.
Please, advise the analogue to OnKey method for PowerPoint.
I need to assign a key combination to a macro by means of VBA.

In Excel I used:
Application.OnKey "%{q}", "MyMacro"

In Word I used:
KeyBindings.Add.KeyCode (ptKeyAlt, ptKeyQ), _ KeyCategory:=ptKeyCategoryMacro, Command:="MyMacro"

How to do the same for PowerPoint?

Thanks in advance!

JonPeltier
01-14-2007, 08:18 PM
I don't think this is available, since the PowerPoint macro recorder has no capability to indicate a shortcut key combination to run the recorded macro.