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!

What code do I need to put around t 1

Status
Not open for further replies.

Jamie2002

Technical User
Sep 17, 2001
62
GB
What code do I need to put around this to say if the file is already open then skip this command...

Workbooks.Open Filename:="C:\Documents s\Desktop\Financial_Model.xls"

Thanks.


Thanks

Jamie
 
on error resume next
workbooks("Financial_Model.xls").activate
if err<>0 then
err.clear
Workbooks.Open Filename:=&quot;C:\Documents s\Desktop\Financial_Model.xls&quot;
end if

Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top