![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 4
|
I have a problem when using Protect or Unprotect method to a worksheet. I got a message "Run-time error 1004"
Anybody can help me ... I've wrote the macro a while a go (3 months) before it works fine... somehow now I can not protect or unprotect my sheet from macro thanks in advance michelle |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Please post your code Michelle.
Are you using a commandbutton to run your macro? Tom |
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Posts: 4
|
Yes, I'm using commandbutton to execute macro
but anyway... It is working right now. I found out that I have to set commandbutton property TakeFocus******* = false |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|