PC Review


Reply
Thread Tools Rate Thread

Close 2007 add-in

 
 
Chris
Guest
Posts: n/a
 
      3rd May 2007
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!

 
Reply With Quote
 
 
 
 
Steve Rindsberg
Guest
Posts: n/a
 
      3rd May 2007
In article <(E-Mail Removed)>, Chris wrote:
> 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")

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


 
Reply With Quote
 
Chris
Guest
Posts: n/a
 
      4th May 2007
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2007 Disable Close and Close All on Tabbed Documents MumHeb Windows Vista 0 6th May 2010 05:36 PM
Close 2007 alvin Kuiper Microsoft Excel Programming 1 28th Apr 2008 03:56 AM
Close 2007 add-in =?Utf-8?B?Y2hyaXM=?= Microsoft Powerpoint 2 2nd May 2007 06:42 AM
Close All in excel 2007 =?Utf-8?B?QW5pdGE=?= Microsoft Excel Misc 1 9th Feb 2007 09:22 PM
Word 2007 and Powerpoint 2007 "close window" button =?Utf-8?B?bWlrZWdidWZm?= Microsoft Word Document Management 6 2nd Feb 2007 05:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:34 PM.