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!

Sas to excel - protect a worksheet

Status
Not open for further replies.

ki77ku

Programmer
Jul 26, 2010
8
US
I am working on a SAS DDE program to write multiple sheets to excel. I would like to make one of the sheet readonly. If I cannot make the sheet readonly, atleast i would liek to make some cells readonly, so thta user cannot update the value isn these cells.
I found this code form the internet, but it is not working:

put '[select("sheet1!c1:c20")]'; /* select first 20 columns */
put '[CELL.PROTECTION(true, false)]'; /* lock cells */

Any help is appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top