View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
TommySzalapski[_26_] TommySzalapski[_26_] is offline
external usenet poster
 
Posts: 1
Default Hide workbook instantly on open


Is it possible to hide a workbook instantly when it opens?
I currently have

Set newBook = Workbooks.Open(fileName)
Windows(fileName).Visible = False

I also tried

Set newBook = Workbooks.Open(fileName)
With newBook
..Windows(fileName).Visible = False
End With

In both cases the workbook flashes on the screen for an instant.
That's clumsy. Is there a way to prevent that without saving the
workbook as hidden?

Thanks


--
TommySzalapski
------------------------------------------------------------------------
TommySzalapski's Profile: http://www.excelforum.com/member.php...o&userid=25561
View this thread: http://www.excelforum.com/showthread...hreadid=391021