Microsoft Office Forums


Reply
Thread Tools Display Modes

Automatically closing slave workbook when main workbook is closed...

 
 
Potsy
Guest
Posts: n/a

 
      03-09-2010, 10:48 AM
Hi

Have two workbooks - lets call them workbook1 and workbook2 for ease.

Workbook 1 is the main document, however, some of data is drawn from
Workbook 2 which is currently mininmized by following code in VBA
Workbook1:

Private Sub Workbook_Open()
Workbooks.Open "Workbook2.xls"
ActiveWindow.WindowState = xlMinimized
End Sub

Ideally I would like Workbook2 opened and hidden so that user does not
even know it is running and then shut down automatically when
Worokbook1 is closed.

PS - when Workbook1 is saved it will be renamed, however Workbook2
title will stay static.

thanks in advance.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically closing slave workbook when main workbook is closed... Potsy Excel Newsgroup 0 03-09-2010 10:46 AM
Slow Excel 2007 calculation in a workbook and one solution Bob Flanagan Excel Newsgroup 2 03-04-2010 04:37 PM



All times are GMT. The time now is 02:01 PM.