PC Review


Reply
Thread Tools Rate Thread

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

 
 
Potsy
Guest
Posts: n/a
 
      9th Mar 2010
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
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
Automatically closing slave workbook when main workbook is closed... Potsy Microsoft Excel Discussion 0 9th Mar 2010 11:46 AM
How to have workbook automatically protect when closed (or opened) DrewParkinson@gmail.com Microsoft Excel Programming 2 17th May 2007 01:37 PM
Workbook closed by VBA not Closing Properly =?Utf-8?B?YmxheW5l?= Microsoft Excel Programming 2 17th Nov 2005 07:35 PM
Closing Hidden Workbook when Active Workbook is Closed =?Utf-8?B?U3VzYW5LNTIx?= Microsoft Excel Programming 5 24th Sep 2005 12:27 AM
Automatically Closing a Workbook Bill Microsoft Excel Misc 1 5th Feb 2004 02:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:05 AM.