Results 1 to 7 of 7

Legend Only Shows Used Axis on Dynamic Chart (X, Y and Y2 axis)

Threaded View

  1. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Lightbulb Re: Legend Only Shows Used Axis on Dynamic Chart (X, Y and Y2 axis)

    Hi
    The only way I know to do as you require is to use a some VBA code. Now I'm no expert with VBA, so I'm not sure how good the code is in my attachment but it seems to work. If any of our forum Gurus can improve the code, or know of a none VBA solution I'd be happy to learn. There are 2 sub routines in Module1 and a worksheet Calculate event which triggers the code based on the value in cell L30, which contains a formula. One routine hides column E which removes the Secondary series and it also removes the Axis values and Title. The other routine reverses the process.

    Hope this is of some use.
    DBY
    Last edited by DBY; 06-19-2012 at 11:08 AM. Reason: Attachment removed, faulty

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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