Results 1 to 6 of 6

Adding/Deleting Shapes

Threaded View

  1. #1
    Registered User
    Join Date
    05-27-2021
    Location
    US
    MS-Off Ver
    2016
    Posts
    3

    Adding/Deleting Shapes

    So I've got an electrical apparatus (switchgear) where there are many switches and circuit breakers. There is logic associated with each switch, but I'm trying to get just the basics working for now. I have 2 buttons assigned to their respective macros. The first button is supposed to make a switch line move from 1 position to another (3 positions). When the line moves, any other line that was added should be removed so that only 1 line exists at a time. The second button is the same as the first except that the switch only has 2 positions. The 2-position switch seems to work ok. The only glitches there seems like I need to declare an initial state, otherwise I get an error on the first execution, and the other glitch is allowing duplicate lines to be created which doesn't delete the original after executing a new position. The same glitches also exist for the first switch with the line addition/deletion not working as expected.

    Where am I going wrong here?

    Many thanks in advance.

    Shannon
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA - Grouping Shapes & Deleting Them
    By CUCE in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-03-2020, 06:39 PM
  2. [SOLVED] Deleting shapes not working
    By peakoverload in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-15-2018, 01:09 PM
  3. [SOLVED] Shapes and Deleting Shapes
    By rob_h in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-24-2017, 10:07 AM
  4. Deleting Shapes
    By Dean81 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2011, 01:25 PM
  5. Deleting Specific Shapes
    By FrankStallone in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2006, 01:43 AM
  6. [SOLVED] Deleting Shapes
    By aftamath in forum Excel General
    Replies: 5
    Last Post: 11-04-2005, 08:45 PM
  7. [SOLVED] deleting all shapes and lines
    By thadpole in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2005, 06:05 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