Closed Thread
Results 1 to 2 of 2

VBA to Protect certain shapes/objects

  1. #1
    Forum Contributor
    Join Date
    03-10-2014
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    180

    VBA to Protect certain shapes/objects

    Hi,

    I have a spreadsheet which is password protected. As part of this protection, however, we have to allow editing of objects because we have comments in certain cells and we want the End User to be able to edit these comments.

    The problem is we also have shapes/objects/buttons (NotActiveX Control buttons) which do need protection because they have macros assigned to them and currently with the protection we are using they can select them and move/edit etc.

    Is there some code I could use that would prevent these specific shapes from being edited? So,

    1) Can code be written to protect these objects/shapes?
    2) If so, how would this work i.e. would it be an On Open Event type code?
    3) If yes how would the designers (aka me) get access to edit?

    Thanks
    MissDB

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: VBA to Protect certain shapes/objects

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    http://www.excelforum.com/excel-prog...worksheet.html

    Thread Closed.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA to protect specfic objects on a worksheet
    By MissDB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2015, 06:45 AM
  2. Protect Shapes on a Sheet
    By lyla22 in forum Excel General
    Replies: 0
    Last Post: 06-12-2014, 04:31 PM
  3. How to protect shapes from being inadvertently moved by user
    By faraoosiris in forum Excel General
    Replies: 2
    Last Post: 02-18-2014, 07:56 AM
  4. Protect sheet and edit Objects
    By FrankD10 in forum Excel General
    Replies: 3
    Last Post: 08-06-2012, 04:02 PM
  5. Can I protect activex-objects?
    By Crüe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2011, 01:09 AM
  6. How to protect shapes in Excel
    By mslava123 in forum Excel General
    Replies: 1
    Last Post: 05-24-2005, 05:06 PM
  7. Protect Objects so they cannot be resized
    By Carolyn A in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-04-2005, 05: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