+ Reply to Thread
Results 1 to 5 of 5

Hide/Unhide named shapes from a list in the same sheet with VBA

  1. #1
    Registered User
    Join Date
    06-09-2016
    Location
    GEorgia
    MS-Off Ver
    2018
    Posts
    2

    Hide/Unhide named shapes from a list in the same sheet with VBA

    Good afternoon dear community,

    I have this project I am blocking on where I need to hide/unhide 100+ named shapes with Excel. Shapes can also be duplicated.

    I had no problem to do it with one (cf bellow code), but I am facing issues to create a loop with a range contained in one column. Attached, a simplified version for tests. Could you please support ?
    Many thanks ahead for your help
    Arnaud

    Code I use for 1 named shape.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by ploup; 07-10-2019 at 07:21 AM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Hide/Unhide named shapes from a list in the same sheet with VBA

    Hi & welcome to the board.
    How about
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Hide/Unhide named shapes from a list in the same sheet with VBA

    One way


    Please Login or Register  to view this content.

    Change the sheet A2:An range as appropriate
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    06-09-2016
    Location
    GEorgia
    MS-Off Ver
    2018
    Posts
    2

    Re: Hide/Unhide named shapes from a list in the same sheet with VBA

    Thank you both for your answer !
    However, the one from Fluff13 is more appropriated thanks to the automatic maxed range and because he is not deleting the shape but hide/unhide them as per the request.
    Again, thank you both for your time, it's highly appreciated. And big thanks to Fluff, it's even more appreciated

    Case solved !

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Hide/Unhide named shapes from a list in the same sheet with VBA

    You're welcome & thanks for the feedback

+ 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] Automatically Hide/Unhide named Range
    By erice in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-17-2018, 03:55 PM
  2. [SOLVED] Hide and Unhide rows on multiple sheets based on a validation list on a single sheet
    By bbarth in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-30-2015, 02:10 PM
  3. Hide / Unhide Shapes Based on Cell Selection
    By ckoolsurf in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-05-2015, 05:33 PM
  4. [SOLVED] Unhide & hide Shapes.
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-14-2013, 07:41 AM
  5. Unable to Hide/Unhide Shapes and Buttons with VBA: Error 400
    By mp4-4 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2013, 03:58 PM
  6. Hide/unhide sheets as per list in named range
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2012, 01:14 PM
  7. Checkbox to hide/unhide named range
    By Joel Mills in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2005, 12: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