current master

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Ok, thanks to a lot of help from here and a couple of excellent sites, I am
getting closer to getting my timer add-in working.

I have managed to add the necessary entries to the "Insert" menu and the
"Drawing" toolbox to call up my inser routine.

I found an article on Microsoft's site which allows me to detect if the user
is currently editing a slide or a slide master. If it's a slide, then I can
get it's index and add the timer to it. How do I do the same if it's a
master, though?

Cheers,

Paul
 
Paul Simpson said:
Hi,

Ok, thanks to a lot of help from here and a couple of excellent sites, I am
getting closer to getting my timer add-in working.

I have managed to add the necessary entries to the "Insert" menu and the
"Drawing" toolbox to call up my inser routine.

I found an article on Microsoft's site which allows me to detect if the user
is currently editing a slide or a slide master. If it's a slide, then I can
get it's index and add the timer to it. How do I do the same if it's a
master, though?

Sub Thing()
With ActiveWindow.View
Debug.Print .Type
Debug.Print .Slide.Name
End With
End Sub

If .Type is 9 or 8 or 2, you're in Slide or Title Master view; Slide.Name will
give you the name of the master you're on. Does that do it?
 
Back
Top