unlocking multiple worksheets

  • Thread starter Peter Loveridge
  • Start date
P

Peter Loveridge

I would like to be able to unlock multiple worksheets
withing a workbook.

I have a workbook compiled using copied worksheets from a
number of workbooks. There are about 150 sheets, which
are all locked and have the same password. Is it possible
to globally unlock them?

Your assistace would be appreciated.

Regards

Peter L.
 
F

Frank Kabel

Hi
use some code like

dim unlock_all()
dim wks as worksheet
on error resume next
for eack wks in worksheets
wks.unprotect password:="your password"
next
on error goto 0
end sub
 
P

Peter Loveridge

Frank

Thanks very much for your response. I will try it as soon
as I get a break, and post again.

Regards
Peter
Sydney
Australia
 

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

Top