Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting password in Excel 97

Status
Not open for further replies.

bez999

Programmer
Oct 3, 2003
99
GB
Hello everybody
I have written some VBA for Excel 2002 that sets the password of a workbook using NewWorkbook.Password = PasswordVariable.
This works fine in 2002 but someone here is using Excel 97 and it fails with "Object doesn't support this property or method"
I have googled and searched these forums but cannot find out how to set the password in Excel 97.
Does anyone know how to do this, please?
Any help most appreciated.
Regards
Chris

Regards
Chris Bezant
 
sets the password of a workbook

... can you be more specific please? Do you want to set the workbook protection password, or the workbook open password?

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top