Results 1 to 4 of 4

Name shape with index

Threaded View

Evolta Name shape with index 09-17-2013, 09:53 AM
Andy Pope Re: Name shape with index 09-17-2013, 09:55 AM
JBeaucaire Re: Name shape with index 09-17-2013, 09:57 AM
Evolta Re: Name shape with index 09-17-2013, 10:24 AM
  1. #1
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Name shape with index

    See if the help is as fast as the previous question.
    This time the question is easy.

    Current code:
    ActiveSheet.Shapes("Rounded Rectangle 6").Visible = False
    ActiveSheet.Shapes("Rounded Rectangle 7").Visible = False
    ActiveSheet.Shapes("Rounded Rectangle 8").Visible = False
    ActiveSheet.Shapes("Rounded Rectangle 9").Visible = False
    ActiveSheet.Shapes("Rounded Rectangle 10").Visible = False
    ActiveSheet.Shapes("Rounded Rectangle 11").Visible = False
    ActiveSheet.Shapes("Rounded Rectangle 12").Visible = False
    ActiveSheet.Shapes("Rounded Rectangle 13").Visible = False
    Is..... indeed... Ulgy.


    I want to hide all shapes named 6 and up. Neeless to say, it doesn't work like this:
    For i = 6 To i = 13
    ActiveSheet.Shapes("Rounded Rectangle " & i).Visible = False
    Next i
    Not an important thing, but it would be nicer
    Last edited by Evolta; 09-17-2013 at 10:24 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Use a button to control a macro that inserts an image into a shape or resets the shape
    By nwb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2013, 04:41 PM
  2. Replies: 0
    Last Post: 11-30-2012, 01:29 PM
  3. [SOLVED] How to Determine Index Number of New Shape
    By Malibumus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2012, 12:33 PM
  4. Selected shape index number
    By Weston33 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2012, 08:00 AM
  5. Shape's Index number?
    By Dr.Ile in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-03-2007, 07:29 AM

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