+ Reply to Thread
Results 1 to 3 of 3

Create chart using VBA

  1. #1
    Forum Contributor
    Join Date
    11-09-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    390

    Create chart using VBA

    Hello,

    I have bunch of data in sheet 1 and would like to create a chart (something like scatter lines with XY) of for example col A against col B in different sheet (for example sheet 2). I also want to programme it like if I add more data to sheet 1 the chart will update as well. could you please hekp me with this?

    Thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Create chart using VBA

    Hi,

    Just create a dynamic range name and use the name in your chart definition.

    See this MS support article
    http://support.microsoft.com/kb/183446
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Create chart using VBA

    Thanks for the rep and glad to have helped.

+ 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. vba code to create chart and fix the axis of the chart
    By Sushil.thakur in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2013, 06:14 AM
  2. Replies: 3
    Last Post: 04-07-2013, 07:40 AM
  3. [SOLVED] How to create Mosaic Chart or Marimekko chart using VBA
    By jonelamora in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-04-2012, 09:14 PM
  4. create a chart with variable Chart data
    By demuro1 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-06-2008, 08:54 AM
  5. [SOLVED] Chart data file lost - need to re-create from chart?
    By LostExcelData in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-07-2006, 03:00 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