+ Reply to Thread
Results 1 to 2 of 2

Selecting all shapes in row range for deletion

  1. #1
    Registered User
    Join Date
    02-16-2013
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    24

    Selecting all shapes in row range for deletion

    I have a working spread sheet that adds, removes (for tracking), and erases custom rows in a workbook.

    My AddNMP macro is tied to the button on the "Forecast" sheet and is working as intended. The RemoveNMP (assigned to 'Remove Temp' control) and DeleteNMP (assigned to "X" control) macros are working for the most part, but I'm running into issues selecting and deleting the button not pressed.

    My goal is to allow the end user to select "Remove Temp" or "X" from primary table on the "Forecast" sheet.

    *"X" control selects the row and deletes it entirely, without inserting it anywhere else.

    *"Remove Temp" selects the row and inserts a parsed version (sans "Remove Temp" control) to the "Falloff" sheet. While "Remove Temp" parses itself out when being copied to "Falloff", I would like to keep the "X" control intact so that the user can edit the "Falloff" sheet using the same functionality.

    In both instances, I'm able to delete the active shape (the control selected), but I'm not able to select and delete the control next to it. I've tried using a For... Each statement to accomplish this, but it's not working. Any recommendations?

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by dystopianprotagonist; 03-11-2013 at 12:31 PM. Reason: for clarity

  2. #2
    Registered User
    Join Date
    02-16-2013
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Selecting all shapes in row range for deletion

    Any suggestions on this? I've set something up that simply deletes the row, but it leaves an artifact where the control shape used to be in "Forecast" sheet. I'd really like to do this properly by selecting all shapes in the row and deleting the shape.

    DeleteNMP:
    Please Login or Register  to view this content.
    Any recommendations?

+ 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