open and hide

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Workbooks.Open Filename:="Data.xls"
ActiveWindow.Visible = False

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
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
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top