Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default macro to create a chart from several worksheets

Hi,

I'm new to VBA. I want to write a macro to create a chart from several
worksheets in a workbook.
Eg. I have a workbook with four worksheets and each work sheet have
column A, B and C. Always column A represents X and B and C represent
Y. So my macro should draw 8 series in one chart.

Could someone help me please.

Many Thanks,

dpkk2
  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default macro to create a chart from several worksheets

It sounds like this macro doesn't really have any
variation. I guess I would probably just record a macro
of yourself making said chart. That may actually be the
easiest.
-----Original Message-----
Hi,

I'm new to VBA. I want to write a macro to create a chart

from several
worksheets in a workbook.
Eg. I have a workbook with four worksheets and each work

sheet have
column A, B and C. Always column A represents X and B and

C represent
Y. So my macro should draw 8 series in one chart.

Could someone help me please.

Many Thanks,

dpkk2
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default macro to create a chart from several worksheets

Here are a couple web pages that might help:

http://peltiertech.com/Excel/ChartsH...kChartVBA.html
http://peltiertech.com/Excel/ChartsH...iffSheets.html

In a macro, getting data from different sheets is no problem. Just use
the seriescollection.newseries approach, and define your X and Y ranges
accordingly.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

dpkk2 wrote:

Hi,

I'm new to VBA. I want to write a macro to create a chart from several
worksheets in a workbook.
Eg. I have a workbook with four worksheets and each work sheet have
column A, B and C. Always column A represents X and B and C represent
Y. So my macro should draw 8 series in one chart.

Could someone help me please.

Many Thanks,

dpkk2


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
create chart with data from across seperate worksheets Diz Charts and Charting in Excel 3 December 23rd 07 04:00 PM
Create a Chart w/data from multiple worksheets Tia Charts and Charting in Excel 4 May 10th 07 09:55 PM
Can I use data from different worksheets to create a chart Dona Charts and Charting in Excel 2 March 14th 06 01:47 AM
how to create chart using data on different worksheets in xls Nilesh Buddha Charts and Charting in Excel 1 March 3rd 06 03:42 AM
Use the same cell from many worksheets to create a chart? Hightower Charts and Charting in Excel 1 June 14th 05 01:14 PM


All times are GMT +1. The time now is 10:35 PM.

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"