ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   open and hide (https://www.excelbanter.com/excel-programming/315995-open-hide.html)

choice[_2_]

open and hide
 
i have register.xls that i open, on auto_open i want it to open data.xls and
make data.xls hidden

thanks in advance

Bob Phillips[_6_]

open and hide
 
Workbooks.Open Filename:="Data.xls"
ActiveWindow.Visible = False

--

HTH

RP
(remove nothere from the email address if mailing direct)


"choice" wrote in message
...
i have register.xls that i open, on auto_open i want it to open data.xls

and
make data.xls hidden

thanks in advance




Nick Hodge

open and hide
 
Choice

This will work...change the obvious bits to the location of the file

Sub Auto_Open()
Dim wbHidden As Workbook
Application.ScreenUpdating = False
Set wbHidden = Workbooks.Open("C:\Data.xls")
wbHidden.Windows(1).Visible = False
Application.ScreenUpdating = True
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"choice" wrote in message
...
i have register.xls that i open, on auto_open i want it to open data.xls
and
make data.xls hidden

thanks in advance





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

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