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
 
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.
 
Back
Top