Excel sheet protected

  • Thread starter Thread starter henpat
  • Start date Start date
H

henpat

Hello all
I have a space in my sheet1 that is blocked but I need work in this space
with a VBA macro.
How can I work in this blocked space by keeping (after macro) the cells
blocked?

Thanks
henpat
 
You could have your macro unprotect the worksheet, do its work and then
reprotect the worksheet.

With worksheets("sheet99")
.unprotect password:="hi"
'do your work
.protect password:="hi"
end with
 
Thanks a lot

Dave Peterson said:
You could have your macro unprotect the worksheet, do its work and then
reprotect the worksheet.

With worksheets("sheet99")
.unprotect password:="hi"
'do your work
.protect password:="hi"
end with
 

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