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

XL97 Open xl file as read only 1

Status
Not open for further replies.

vaneagle

Technical User
Apr 23, 2003
71
AU
Hi,

Is it possible with vba to open an xl workbook as read only when the file itself is not saved as a read only file ?
 

Workbooks.Open FileName:="C:\myfile.xls", ReadOnly:=True

Look at the Open Method in help for more info.
 
thanks for that DrBowes!!

I had ,
Code:
 readonly = true
I missed the colon!!

Have a star!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top