Unprotecting a Worksheet in Excel Macro
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Unprotecting a Worksheet in Excel Macro

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I want to run a macro from the active sheet but I want to unprotect a different sheet so I can change a formula in it. I've tried:

    Worksheet("sheet2").Unprotect

    while the active sheet is "sheet1". This didn't work, I get an error message that says "Sub or Function Not Defined".

    What is the correct command?


    Mechanic

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    =ActiveCell.Address
    Posts
    478
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Try

    Sheets("Sheet2").Unprotect

    instead.

    Rgds
    AJ

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
  •  

 

 
DMCA.com