Shortcut keys for macros - vba

C

Chris Watts

Hi!

In PPT 2007
How can I allocate a shortcut key to a macro (using vba presumably)?
Where should I place the code for it to be assigned on starting PPT?

I have done this quite succesfully in vba for Excel using:

Private Sub Workbook_Open()
Application.MacroOptions Macro:="FitToSlide", HasShortcutKey:=False,
ShortcutKey:="Q"
End Sub

and placing it in This Workbook under Excel objects.

But cannot see how/where to do the same in PPT.

TIA
Chris
 
C

Chris Watts

Oh drat!
Thanks Steve.
cheers
Chris

Steve Rindsberg said:
PPT doesn't offer this feature, unfortunately.
Have a look here for a likely workaround though:
http://officeone.mvps.org/

See the Shortcuts-related links on that page.


If you want code to run when PPT starts, you need to create an add-in that
includes an Auto_Open subroutine. That will run when PPT starts up if the
add-in is loaded.




==============================
PPT Frequently Asked Questions
http://www.pptfaq.com/

PPTools add-ins for PowerPoint
http://www.pptools.com/

Don't Miss the PPTLive User Conference! Atlanta | Oct 11-14
 
Joined
Jul 26, 2015
Messages
1
Reaction score
0
This post is quite old and ever since , microsoft ppt hasnt improve this problem . Anyhow , since i have this similar problem today and buying a Software just for this simple purpose is i think it too expensive and impractical. Anyhow, i found a trick to do the similar feature.

Write a autohotkey script similiar as below so you can easily do a "ctrl+r" and your macro in ppt will run. Of course, the prerequisite is that you have to put your macro in an add-ins and linked to a custom toolbar. From there , this trick will just be accessing the custom toolbar . But in a way making a convenient call to your macro with a keyboard shorcut. Enjoy !

LCtrl & r::
;SetKeyDelay, 1000
Send Raw{Alt}
SendRaw x
SendRaw y
Send Raw{Alt}
SendRaw h
Send Raw{Alt}
Goto, Exit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top