PC Review


Reply
Thread Tools Rate Thread

closing a vba project - dumb question

 
 
ajlowndes
Guest
Posts: n/a
 
      10th Nov 2010
I know this is likely to be a dumb question but for all my searching I
cannot find an answer.

You can open a project (in my case one of my excel add-in files) by
double clicking on it - and the filename will be added to the Project
Explorer window in VB, along with all it's modules etc. But how do
you go about closing that add-in file once it is open? The only way I
found was to (save changes to all the other open projects, and) close
excel entirely, then open it again.

Another way I found was to find "ThisWorkbook" and change the
"IsAddin" property to FALSE, which opens the workbook in excel which I
can then close.

Is there an easier way to close a project?
 
Reply With Quote
 
 
 
 
Clif McIrvin
Guest
Posts: n/a
 
      10th Nov 2010
"ajlowndes" <(E-Mail Removed)> wrote in message
news:2a168890-dcab-40f4-a203-(E-Mail Removed)...
>I know this is likely to be a dumb question but for all my searching I
> cannot find an answer.
>
> You can open a project (in my case one of my excel add-in files) by
> double clicking on it - and the filename will be added to the Project
> Explorer window in VB, along with all it's modules etc. But how do
> you go about closing that add-in file once it is open? The only way I
> found was to (save changes to all the other open projects, and) close
> excel entirely, then open it again.
>
> Another way I found was to find "ThisWorkbook" and change the
> "IsAddin" property to FALSE, which opens the workbook in excel which I
> can then close.
>
> Is there an easier way to close a project?



Partial answer from one with limited experience: In xl2010, go Developer
Group > Add-ins and de-select the addin in question. I think that closes
the add-in.

--
Clif McIrvin

(clare reads his mail with moe, nomail feeds the bit bucket :-)


 
Reply With Quote
 
GS
Guest
Posts: n/a
 
      12th Nov 2010
ajlowndes has brought this to us :
> I know this is likely to be a dumb question but for all my searching I
> cannot find an answer.
>
> You can open a project (in my case one of my excel add-in files) by
> double clicking on it - and the filename will be added to the Project
> Explorer window in VB, along with all it's modules etc. But how do
> you go about closing that add-in file once it is open? The only way I
> found was to (save changes to all the other open projects, and) close
> excel entirely, then open it again.
>
> Another way I found was to find "ThisWorkbook" and change the
> "IsAddin" property to FALSE, which opens the workbook in excel which I
> can then close.
>
> Is there an easier way to close a project?


If it's not an installed addin (but just an opened xla file), in the
Immediate Window of the VBE use...
Workbooks("Name_Of_XLA_File").Close False

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


 
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
Dumb if question Bob Microsoft C# .NET 9 11th Aug 2006 10:06 PM
Dumb question from dumb person: HELP PLEASE!! SirFranky Microsoft Access 4 10th May 2006 07:47 PM
Dumb question: how to add a new project using the same existing folder? Bill Nguyen Microsoft VB .NET 2 22nd Nov 2005 02:44 PM
Dumb Ram Question Tris Computer Hardware 2 11th Oct 2005 10:42 PM
general computer question (dumb question?) =?Utf-8?B?c3F1aXJlag==?= Windows XP General 10 24th Feb 2005 01:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:49 AM.