Thread: Protect cells
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Fernando Duran[_2_] Fernando Duran[_2_] is offline
external usenet poster
 
Posts: 3
Default Protect cells

If I protect the worksheet with a macro, do you I have to unprotect it while
writing, right?

"Earl Kiosterud" wrote in message
...
Fernando,

Protect the workbook in a macro, like this:

Sheets(MySheet).Protect UserInterfaceOnly:=True ' Password:="MyPass" '
Password optional.

Or your macro can unprotect the sheet, make its changes, then protect it.
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Fernando Duran" wrote in message
. ..
I'm trying to write in a worksheet using a macro, I have no problem, as

long
the worksheet isn't protect. But I want to protect the file, so, the

user
wont be able to change anything.. can I get some help in this problem?