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

Excel Automation with VFP - ReadOnly

Status
Not open for further replies.

mikeisvfp

Programmer
Mar 5, 2011
91
CA
Hello Experts
How would I make my excel workbook ReadOnly, I was only able to find "Mark As Final" which is ok, but i cant seem to get it to work

please help
 
You can either open it read-only by passing .T. for the 3rd parameter to the Open method, or make it "recommended read-only" by issuing SaveAs with the 5th parameter set to .T.

Note that, in Office, read-only simply means you can't save it back to the original file. It doesn't keep the user from making changes.

Tamar
 
Thank You Tamar

I figured out a safer way of doing this, rather than making escel file readonly

convert to pdf

oSheet.ExportAsFixedFormat(xlTypePDF, (mcExcelFile))


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top