Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Protect/Unprotect method of worksheet class failed

  1. #1
    New Member
    Join Date
    May 2002
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Cincinnati, Ohio, USA
    Posts
    6,824
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Please post your code Michelle.
    Are you using a commandbutton to run your macro?
    Tom

  3. #3
    New Member
    Join Date
    May 2002
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •