+ Reply to Thread
Results 1 to 3 of 3

VBA to show one chart or another based on criteria

  1. #1
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    VBA to show one chart or another based on criteria

    Hi guys,

    Not even sure where to begin with this one....

    I have a two charts in a spreadsheet called "Data", imaginatively called "Chart1" and Chart2".

    What I'd like:

    On another spreadsheet (same workbook) called "Chart" I'd like to display one or other (not both) of the charts, based on the following criteria:

    Cell A2 in Data = 1 show Chart1
    Cell A2 in Data = 2 show Chart2
    Cell A2 in Data = "" then display nothing.

    Is this making any sense?

    Cheers for any help you can give on this!

    SA
    Last edited by SAsplin; 04-19-2013 at 10:49 AM.

  2. #2
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: VBA to show one chart or another based on criteria

    Would the easiest way be linking the charts to an image control?

  3. #3
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: VBA to show one chart or another based on criteria

    No worries. I've sussed it myself.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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