ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to hide workbook in background... (https://www.excelbanter.com/excel-programming/371171-how-hide-workbook-background.html)

Brett D

How to hide workbook in background...
 
Hi,
I'm working with two workbooks. One has my macros the other has the data. I
assume in order to access the data in the data workbook it has to be open.
That said, is there a way I can hide the data workbook without first making
it active and then using ActiveWindow.Visible = False? I'd also like to make
it Visible again before I close it but not have to Activate it before doing
so.

Basically I want to make the opening of the data file as transparent to the
user as I can.

Thanks very, very much!
bd


Die_Another_Day

How to hide workbook in background...
 
If you know the wb name, ws name and range then try J-Walks site:
http://www.j-walk.com/ss/excel/tips/tip82.htm

Otherwise try
Windows("OtherWorkbook.xls").Visible = False


Charles


Brett D wrote:
Hi,
I'm working with two workbooks. One has my macros the other has the data. I
assume in order to access the data in the data workbook it has to be open.
That said, is there a way I can hide the data workbook without first making
it active and then using ActiveWindow.Visible = False? I'd also like to make
it Visible again before I close it but not have to Activate it before doing
so.

Basically I want to make the opening of the data file as transparent to the
user as I can.

Thanks very, very much!
bd




All times are GMT +1. The time now is 07:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com