Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Workbook is hidden after being saved by VB6 (??)

Status
Not open for further replies.

IgnaceD

Technical User
Apr 1, 2004
6
NL
Hi all,

I am loading a simple Excel workbook and immediately saving it without any changes in Visual Basic 6 Pro.
See code:

'Reference to Microsoft Excel Object Library 8.0 (PC with Windows 2000, Office 97)

Dim Booklet As Workbook
Set Booklet = GetObject("C:\test.xls") 'load
Booklet.Save 'save
set Booklet = nothing
(end of code)

This is all very simple, but loaded in Excel, the test.xls is now hidden. Before is was not hidden. I have to unhide it with menu Window, Unhide.
What do I have to do in the VB6 code to prevent test.xls from being hidden?

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top