problems getting the name of a presentation using com addin

K

kkizer

i have created a commandbarbutton in Visual Studio using vb.net and i
am trying to capture the name of the powerpoint file that i have open.
i figured it would be very simple but i guess not. i think the problem
is that there is no "activepresentation" and i cannot figure how to
make it an active presentation

using this code does nothing.

theDoc = Me.pptApp.ActivePresentation.Name.ToString
MsgBox(theDoc)

i have even tried to see if i could just close the presentation by

me.pptApp.ActivePresentation.close()

whats going on? im lost!
 

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

Top