.Net and Excel 2000 Protect

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to use the protect feature for a worksheet in 2000 from a .Net
application I am writing. I can unprotect it. But can not protect worksheet.
I can protect and unproject in Excel 2003. Does anyone have the proper
command structure for 2000. Help files were vague at best.

Thanks
 
This works fine for me with Excel 2000/XP/2003

ws.Protect("",missing,missing,missing,true,true,true,true,false,false,missin
g,false,false,missing,missing,missing);

where missing = System.Reflection.Missing.Value

HTH,
Nacho
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top