Viewing "Slides" option in PowerPoint 2007

Jack21
2StarLounger
Posts: 107
Joined: 23 Mar 2010, 13:42

Viewing "Slides" option in PowerPoint 2007

Post by Jack21 »

Can anyone help?

I have a piece of PowerPoint development that allows a user to create a brand compliant PowerPoint presentation and an edit function that includes code to insert additional slides from the master. My ideal would be that when the user selects that option from the edit function I close the form and view the "Slides" option. Can this be achieved by showing the "Slides" dialog box? If so, do you know what the command would be?

Thanks in advance
Jack

User avatar
HansV
Administrator
Posts: 78457
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Viewing "Slides" option in PowerPoint 2007

Post by HansV »

Er, what exactly do you mean by the "Slides option" or "Slides dialog"?
Best wishes,
Hans

Jack21
2StarLounger
Posts: 107
Joined: 23 Mar 2010, 13:42

Re: Viewing "Slides" option in PowerPoint 2007

Post by Jack21 »

In PowerPoint if you click on the "Slides" drop down arrow on the Home ribbon you will see a number of slides you can select from to add to your presentation.

Regards
Jack

User avatar
HansV
Administrator
Posts: 78457
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Viewing "Slides" option in PowerPoint 2007

Post by HansV »

I can't test this at the moment, but does this work?

SendKeys "%HI"
Best wishes,
Hans

Jack21
2StarLounger
Posts: 107
Joined: 23 Mar 2010, 13:42

Re: Viewing "Slides" option in PowerPoint 2007

Post by Jack21 »

Opens "Help". Do you know of a list I can refer to?

Thanks
Jack

User avatar
StuartR
Administrator
Posts: 12604
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Viewing "Slides" option in PowerPoint 2007

Post by StuartR »

Jack21 wrote:In PowerPoint if you click on the "Slides" drop down arrow on the Home ribbon you will see a number of slides you can select from to add to your presentation
My copy of PowerPoint 2007 does not have a "slides drop down arrow" on the home ribbon.
PPT Home Ribbon.png
You do not have the required permissions to view the files attached to this post.
StuartR


Jack21
2StarLounger
Posts: 107
Joined: 23 Mar 2010, 13:42

Re: Viewing "Slides" option in PowerPoint 2007

Post by Jack21 »

Sorry, if you select "New Slide", under "Slides". I really should be more descriptive, apologies.

User avatar
HansV
Administrator
Posts: 78457
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Viewing "Slides" option in PowerPoint 2007

Post by HansV »

Press Alt. You'll see letters appear on top of the buttons. The key combination for the button is Alt+letter(s), and the VBA equivalent of this keyboard shortcut is

SendKeys "%letter(s)"
Best wishes,
Hans

Jack21
2StarLounger
Posts: 107
Joined: 23 Mar 2010, 13:42

Re: Viewing "Slides" option in PowerPoint 2007

Post by Jack21 »

I have typed SendKeys "%letter(s)" in the Immediate Window and receive "etters" beneath the line. Am I doing something wrong?

Thanks
Jack

User avatar
HansV
Administrator
Posts: 78457
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Viewing "Slides" option in PowerPoint 2007

Post by HansV »

I'm sorry. What I meant is, if you press Alt, you'll see something like this:
image5.png
Some buttons have a letter, or two letters. If the New Slide button has a letter, you should use that.

I'll be able to test in PowerPoint 2007 later today.
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

User avatar
StuartR
Administrator
Posts: 12604
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Viewing "Slides" option in PowerPoint 2007

Post by StuartR »

I don't see any letters for the New Slide dropdown arrow in PowerPoint 2007
StuartR


Jack21
2StarLounger
Posts: 107
Joined: 23 Mar 2010, 13:42

Re: Viewing "Slides" option in PowerPoint 2007

Post by Jack21 »

Tried that - A is above the New Slide but takes you to Animation. I can't see any short cut keys for New Slide.

Cheers
Jack

User avatar
StuartR
Administrator
Posts: 12604
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Viewing "Slides" option in PowerPoint 2007

Post by StuartR »

Jack21 wrote:Tried that - A is above the New Slide but takes you to Animation. I can't see any short cut keys for New Slide
Control-M is the shortcut for new slide, but this does the equivalent of pushing the big New Slide button, not clicking the little arrow that gets the dropdown.
StuartR


User avatar
HansV
Administrator
Posts: 78457
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Viewing "Slides" option in PowerPoint 2007

Post by HansV »

I have now tested on PowerPoint 2007. Microsoft has not exposed a way to display the New Slide dropdown using VBA.

The only workaround I can think of is a rather clumsy one: add the New Slide dropdown to the Quick Access Toolbar (QAT).
x336.png
Let's say that the New Slide button is the 4th button on the QAT. You can now use the line

SendKeys "%4"

to display the dropdown list from VBA code.If the New Slide button is in a different position on the QAT, adjust the line accordingly.
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

Jack21
2StarLounger
Posts: 107
Joined: 23 Mar 2010, 13:42

Re: Viewing "Slides" option in PowerPoint 2007

Post by Jack21 »

Many thanks Hans. It is not a solution I can use as we give the user access to create their own QAT. I will just re-invent the wheel and give them access to create from the Edit Presentation incorported in the development environment.

Regards
Jack