+ Reply to Thread
Results 1 to 3 of 3

How can I make macros execute on a protected sheet?

  1. #1
    J Scott
    Guest

    How can I make macros execute on a protected sheet?

    I have several command buttons attached to macros to enlarge or reduce the
    size of embedded charts. When I protect the sheet, the macros will not
    execute. Is there a way to protect the sheet and still enable the macros?

  2. #2
    JGeniti
    Guest

    Re: How can I make macros execute on a protected sheet?

    In your macro you could just add a line of code at the begining to
    unprotect the sheet and then at the end of the code you can protect the
    sheet again.

    activesheet.unprotect
    - macro code
    activesheet.protect

    if you have the sheet passwork protected you will need to add the
    password at the end

    activesheet.unprotect "password"


  3. #3
    philcud
    Guest

    Re: How can I make macros execute on a protected sheet?

    ActiveSheet.Unprotect Password:="XXX"


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1