Macro

T

T

I am trying to record a macro and have it remember the
password, does anyone know how to do?
 
D

Dave Peterson

I use xl2002 and it won't record the macro when I protect a worksheet or the
workbook.

Interestingly, it will record the password when I allow users to edit ranges on
a protected sheet.

But you'll have to modify the code:

ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True

would become:

ActiveSheet.Protect password:="topsecret", _
DrawingObjects:=True, Contents:=True, Scenarios:=True
 

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