ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Problem: Worksheets("New Style 2006").Unprotect Password:="naPrint" (https://www.excelbanter.com/excel-programming/351802-problem-worksheets-new-style-2006-unprotect-password-%3D-naprint.html)

Karoo News[_2_]

Problem: Worksheets("New Style 2006").Unprotect Password:="naPrint"
 
Why do I get get a run time error 1004 when using this command on Excel 97?

The above script is in sub of a Control Command Button.

Rgds
Neil




Tom Ogilvy

Problem: Worksheets("New Style 2006").Unprotect Password:="naPrint"
 
Set the TakeFocusOnClick property of the Commandbutton to false. This is a
bug in xl97.

--
Regards,
Tom Ogilvy


"Karoo News" wrote in message
...
Why do I get get a run time error 1004 when using this command on Excel

97?

The above script is in sub of a Control Command Button.

Rgds
Neil







All times are GMT +1. The time now is 11:37 PM.

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