ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Not visible workbook (https://www.excelbanter.com/excel-programming/326744-not-visible-workbook.html)

Mircea Pleteriu[_2_]

Not visible workbook
 
Hi,

I need to open two workbooks and one of them to should not be visible.
How to make one of the workbook visible and the other one not visible?

Thanks,
Mircea



Tom Ogilvy

Not visible workbook
 
Windows("Book1.xls").Visible = True
Windows("Book2.xls").Visible = False

--
Regards,
Tom Ogilvy

"Mircea Pleteriu" wrote in message
...
Hi,

I need to open two workbooks and one of them to should not be visible.
How to make one of the workbook visible and the other one not visible?

Thanks,
Mircea





Bernie Deitrick

Not visible workbook
 
Mircea,

Open first workbook (the one that shouldn't be visible), then use

ActiveWindow.Visible = False

then open your second visible workbook.

HTH,
Bernie
MS Excel MVP

"Mircea Pleteriu" wrote in message
...
Hi,

I need to open two workbooks and one of them to should not be visible.
How to make one of the workbook visible and the other one not visible?

Thanks,
Mircea





Mircea Pleteriu[_2_]

Not visible workbook
 
Thanks a lot,

"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
Mircea,

Open first workbook (the one that shouldn't be visible), then use

ActiveWindow.Visible = False

then open your second visible workbook.

HTH,
Bernie
MS Excel MVP

"Mircea Pleteriu" wrote in message
...
Hi,

I need to open two workbooks and one of them to should not be visible.
How to make one of the workbook visible and the other one not visible?

Thanks,
Mircea








All times are GMT +1. The time now is 03:37 AM.

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