+ Reply to Thread
Results 1 to 6 of 6

Macros not working on protected worksheet

  1. #1
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    510

    Macros not working on protected worksheet

    I have several worksheets in my workbook and all are protected. I use the following code on workbook open. Most of the several macros within the workbook run fine.
    Please Login or Register  to view this content.
    However, the following macro does not run. I have the spinner behind a rectangle (I want the spinner to be "hidden" until it is brought forward by this macro).
    Please Login or Register  to view this content.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: Macros not working on protected worksheet

    Hi there,

    It seems that the ZOrder property may not be changed while the worksheet is protected.

    Instead of hiding the Spinner behind a Shape, why not just toggle the Visible property of the Spinner as required? The Visible property may be changed while the worksheet remains protected.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    510

    Re: Macros not working on protected worksheet

    GregM,
    Thank you much!!! You gave me direction and I was able to come across the following, and it works GREAT!
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    510

    Re: Macros not working on protected worksheet

    GregM,
    I spoke to soon. I have several Spinners on the worksheet that are referenced to several different cells. How would I wrote the above code to have each of the "If/Else" statements?

  5. #5
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    510

    Re: Macros not working on protected worksheet

    GregM,
    Duh....
    I used the following code and all works good.
    Please Login or Register  to view this content.

  6. #6
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: Macros not working on protected worksheet

    Hi again,

    Many thanks for your feedback and also for the Reputation increase - much appreciated

    Well done on working everything else out for yourself!

    Best regards,

    Greg M

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Enable Macros in Protected Worksheet
    By JRose0303 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-21-2014, 01:33 PM
  2. [SOLVED] Way to Get Around Macros Not Working in Protected Sheet?
    By lyndy256 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-22-2013, 10:12 PM
  3. Macros not working in a protected workbook
    By Triscia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2013, 08:25 AM
  4. Macros not working in protected sheets
    By Madraykin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-05-2012, 07:32 AM
  5. Run macros on protected worksheet
    By Lisa D'K in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-04-2006, 04:10 PM
  6. RE: Run macros on protected worksheet
    By paul in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-04-2006, 07:55 AM
  7. allow macros in protected worksheet
    By Marge in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-25-2005, 12:06 PM
  8. Is is possible to run macros on a protected worksheet
    By petunia in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2005, 01:06 PM

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