+ Reply to Thread
Results 1 to 2 of 2

detecting copy paste of shapes in sheet or shape deletion

  1. #1
    Forum Contributor
    Join Date
    09-30-2009
    Location
    Barcelona
    MS-Off Ver
    Excel 2010
    Posts
    274

    Question detecting copy paste of shapes in sheet or shape deletion

    Hi,

    I have an excel tool that generates a schedule based on a data sheet
    users can move milestones and information is updated automatically on the sheet

    however, I want to prevent users from doing copy-paste with existing shapes, or deleting them by clickling del key while selecting them

    is there any reliable and efficient way to do that?

    to update dates on the data sheet I have a macro that runs every 2 secons and checks milestone positions
    at best would be some slight modification to the macro to at least show a warning that something "illegal" has been done and that user must refresh schedule render from data again.

    since shapes have already a custom-name, when copy-pasting, name remains the same.
    I could try to detect two shapes with the same name, but I do not come up with an efficient way to do that that can be called every two seconds without freezing everything up.

    all feedback welcome!

  2. #2
    Forum Contributor
    Join Date
    09-30-2009
    Location
    Barcelona
    MS-Off Ver
    Excel 2010
    Posts
    274

    Re: detecting copy paste of shapes in sheet or shape deletion

    Actually I just came with a solution
    I can protect the sheet, and unprotect it only when the macro is running with a timer

    ShapeAddedDeletedDetection.xlsm

    any other approach?

+ 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. [SOLVED] ws.Paste method fails after lots of copy-paste of shapes
    By bagullo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2015, 03:00 AM
  2. [SOLVED] Detecting shapeS out of rectangle perimeters
    By Heva in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-30-2013, 05:34 AM
  3. Replies: 6
    Last Post: 02-07-2013, 02:29 AM
  4. Detecting Copy/Paste attempts on a form.
    By starcrwzr in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-28-2009, 06:38 PM
  5. [SOLVED] Detecting if a range contains a shape
    By Nick Hebb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2005, 10:05 PM

Tags for this Thread

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