showing navigation menu programatically

  • Thread starter Thread starter mwaller
  • Start date Start date
M

mwaller

I need to disply the navigation menu (specifically the 'go to page...'
dialog where all the pages are listed) programatically through a VB
macro (in response to a button press).
There's plenty of advice about on how to prevent this dialog being
displayed, but none on how to show it! (Google is not always my
friend!)
Is this dialog available in VB through the document model, or can I
mimic a right button click programatically to display it?

I've tried iterating through the available commandbars using the
following, but I get two commandbars that I cannot seem to show or do
anything with :(

For Each cmdbar In CommandBars
If cmdbar.Name = "Slide Show" Then
MsgBox "'Slide show'command bar is in the collection."
End If
Next

Any help gratefully received :)

mwaller
 
Would it be simpler (and more reliable) to create your own form that mimics
the Go To page dialog? At least two examples of code to get slide titles
were posted yesterday; that, a list box on the form and some other odds and
ends should do it.

--

Steve Rindsberg PPT MVP
PPTLive ( http://www.pptlive.com ) Featured Speaker
PPTools: http://www.pptools.com
PPT FAQ: http://www.pptfaq.com
 
I just didn't want to re-invent the wheel unnecessarily :)

Surely there must be some way to access the 'normal' navigation menu
items, or are these dialogs created on the fly?

MLW
 
I just didn't want to re-invent the wheel unnecessarily :)

But hey, if dad won't give you the keys to *his* wheel, it leaves you no
choice. ;-)
Surely there must be some way to access the 'normal' navigation menu
items, or are these dialogs created on the fly?

They'd have to be populated on the fly, at the very least, since the number
and sequence of slides in a presentation can change on the fly as well.
 
thanks - but in the end I rolled my own!
Works a treat - and looks like the real thing :)
However...
originally I wanted to write just a design template that could be
applied to any existing presentation, but I found that the UserForm
was not being added to the presentations - to get it to work I had to
apply the design template then import the previously exported .frm
file. Is this behaviour by design or did I miss something stupid?

MLW
 
However...
originally I wanted to write just a design template that could be
applied to any existing presentation, but I found that the UserForm
was not being added to the presentations - to get it to work I had to
apply the design template then import the previously exported .frm
file. Is this behaviour by design or did I miss something stupid?

If you apply the template to an existing presentation, the presentation
inherits the appearance settings of the template but none of what we might
call its content. In fact let's. Content. There. We said it and we're
PROUD.

If you start a new presentation based on the same template, you should get
the content as well, including your code.

So perhaps instead of applying the template, you'd want to start a new
presentation, then use Insert, Slides, From File (or the VBA equiv. thereof)
to bring the slides into it.
 

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

Back
Top