Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default IIF statement to hide a graphic

How can I use IIF statement to display or hide a graphic?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default IIF statement to hide a graphic

Hi Bob

If by Graphic you mean a chart. Try this it will hide charts on a
page if a condition is not true.

Take care
Marcus


Option Explicit

Sub VisibleChObj()
If Range("B1").Value = 1 Then
ActiveSheet.ChartObjects.Visible = True
Else
ActiveSheet.ChartObjects.Visible = False
End If

End Sub
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I hide the #DIV0! statement in a cell? JSN Excel Discussion (Misc queries) 5 March 30th 16 06:55 PM
how do I hide zeros in a graphic? FLF Charts and Charting in Excel 4 February 7th 08 08:47 PM
What graphic format? Siberian Excel Discussion (Misc queries) 0 July 21st 05 03:11 PM
Hide Row command using if statement DME Excel Worksheet Functions 2 February 16th 05 03:44 PM
VBA-Graphic Bourbon[_4_] Excel Programming 2 January 12th 04 06:12 PM


All times are GMT +1. The time now is 02:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"