Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 02-21-2017, 08:50 PM
NoSparks NoSparks is offline Loop through worksheet range to show / hide shapes. Windows 7 64bit Loop through worksheet range to show / hide shapes. Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

Hello wlcdo2

I suggest using Option Explicit at the top of your code modules.

Using the same range for the loop and CountIf your If statement will always be >0.

Believe you need to specify the shape type (or name) as well, something like
.Shapes("Rectangle " & rngList).Visible = True

Last edited by NoSparks; 02-21-2017 at 09:26 PM. Reason: added (or name)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Loop through worksheet range to show / hide shapes. Copy Excel Range and Paste in PowerPoint Shapes leops PowerPoint 4 08-31-2017 06:47 AM
How to Hide/Un-hide a worksheet based on cell on another sheet. easton11 Excel Programming 1 06-02-2015 12:07 PM
Loop through worksheet range to show / hide shapes. copy a range including shapes Marcus Excel Programming 8 08-17-2012 01:50 AM
Loop through folder of workbooks and copy range to other workbook Snvlsfoal Excel Programming 3 07-29-2011 05:55 AM
PP 2010 .avi file plays during slide show, but causes the slide show to loop to begin VictorS PowerPoint 0 10-16-2010 10:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft