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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA in Excel: Open a workbook in the background 1

Status
Not open for further replies.

VBAguy22

IS-IT--Management
Aug 5, 2003
180
CA
Hi
I am trying to open a workbook in the background, do some stuff to it, then close it
I managed to run the sub in the foreground, does anyone have code for how to open an excel workbook in the background instead of foreground?

ThnX
 
Set WB = Workbooks.Open("\path\to\file.xls")
WB.Windows(1).Visible = False

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top