+ Reply to Thread
Results 1 to 2 of 2

VBA charts update - dynamically test sheet type for two types of charts

  1. #1
    Registered User
    Join Date
    06-03-2010
    Location
    ljubljana
    MS-Off Ver
    Excel 2003
    Posts
    23

    VBA charts update - dynamically test sheet type for two types of charts

    working on short piece of VBA code. Situation: 200+ charts in workbook need some update ( for example Y axis scale).

    I managed to write two Sub's:

    - one updating charts on Worksheets ( beside tables)
    - one updating standalone charts on Chart sheets

    Would be nice to have solution that would dynamically test Current sheet type and each sheet type in a loop and select appropriate/run appropriate Sub for either chart on worksheet or standalone.

    Any suggestion?


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: VBA charts update - dynamically test sheet type for two types of charts

    Try this:
    - run first with message boxes to see if it provides the correct split for you
    - then call your 2 procedure instead of building up message strings

    - procedure returns message box listing each chart by sheet:

    SheetsByType.jpg


    In general module:
    Please Login or Register  to view this content.
    Last edited by kev_; 12-07-2017 at 07:12 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

+ 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. If sheet activated -> update the charts on the sheet
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-16-2015, 04:59 AM
  2. [SOLVED] Is it possible to dynamically update a charts data series, based on another cell
    By missydanni in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-14-2013, 11:29 AM
  3. Charts - Combining Charts Update
    By simville02 in forum Excel General
    Replies: 0
    Last Post: 02-16-2012, 05:53 PM
  4. Replies: 3
    Last Post: 04-28-2009, 12:29 PM
  5. Replies: 1
    Last Post: 05-09-2007, 11:35 AM
  6. How do I share User-Defined Custom Chart Types in Pivot Charts?
    By jantz_question in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-20-2005, 09:05 AM
  7. [SOLVED] Charts Line Types for Multiple Data Series not Printing Properly
    By Seanb in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-22-2005, 02:05 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