Close 2007 add-in

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Hi,

In my Office 2007, in a power point add-in, I have a button for
closing
add-in on my custom ribbon.
What command shall I use for closing only this add-in and keeping
power
point open ? In Excel the command is THISWORKBOOK.CLOSE.

Thanks a lot in advance!
 
Hi,

In my Office 2007, in a power point add-in, I have a button for
closing
add-in on my custom ribbon.
What command shall I use for closing only this add-in and keeping
power
point open ? In Excel the command is THISWORKBOOK.CLOSE.

That would close the current workbook, not an add-in, no?

In any case, assuming you have an add-in named MyAddin loaded in PPT:

Application.AddIns("MyAddin").Loaded = False

To load one:

Application.AddIns.Add("C:\SomeFolder\MyAddin.PPA")
 
Thanks a lot Steve for your message!

It works! For Excel the command THISWORKBOOK.CLOSE closes an add-in
also, because THISWORKBOOK works in the add-in from which macro was
executed.
 
Back
Top