ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   works in Xl2000 but notXl97 - help required (https://www.excelbanter.com/excel-programming/332221-works-xl2000-but-notxl97-help-required.html)

N E Body

works in Xl2000 but notXl97 - help required
 
Hi

The following line works in Excel 2000 but gives an error in Excel 97

Sheets("Summary").Unprotect password:="cockroach"

Could someone give me the 97 code?

Kenny



Norman Jones

works in Xl2000 but notXl97 - help required
 
Hi Kenny,

How are you running this code?

In xl97, if it is run from a commandbutton, you should change the
takefocusonclick property of the commandbutton to False.

---
Regards,
Norman



"N E Body" wrote in message
...
Hi

The following line works in Excel 2000 but gives an error in Excel 97

Sheets("Summary").Unprotect password:="cockroach"

Could someone give me the 97 code?

Kenny






All times are GMT +1. The time now is 04:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com