Swirching views PowerPoint 2010

mooseman
NewLounger
Posts: 2
Joined: 09 Apr 2013, 19:10

Swirching views PowerPoint 2010

Post by mooseman »

I have used this code to switch to the slide master to update an embedded excel macro-enabled object and I need to switch back to Normal view.

Code: Select all

 CommandBars.ExecuteMso ("ViewSlideMasterView")
"ViewNormalView" doesn't work.
Any other ideas for a VBA solution?
Thanks

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

Re: Swirching views PowerPoint 2010

Post by HansV »

Welcome to Eileen's Lounge!

To switch to Slide Master view, you can use

ActiveWindow.ViewType = ppViewSlideMaster

and to switch back to Normal view:

ActiveWindow.ViewType = ppViewNormal
Best wishes,
Hans

mooseman
NewLounger
Posts: 2
Joined: 09 Apr 2013, 19:10

Re: Swirching views PowerPoint 2010

Post by mooseman »

That was very helpful.
I found the return to normal view
ActiveWindow.ViewType = ppViewNormal
doesn't work when you use the
CommandBars.ExecuteMso ("ViewSlideMasterView")
method