Macro to protect with pword in 97

W

Wes

I've coded in excel xp, but it does not work if I open it
in excel 97. The code unprotects a page with a passowrd,
changes some things, then protects it again. The code to
protect I used was:

Worksheets("Student List").Unprotect Pword
.... some code ...
Worksheets("Student List").Protect password:=Pword

(Where Pword is a string constant)

What do I need to change so that it works in 97?

Thanks for any help you can give me.
 
T

Tom Ogilvy

If you are running it from a comandbutton, then change the TakeFocusOnClick
property to False.
 

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