473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Need help with VB making combine chart on excel

Hi everybody, I have a problem in vb6 code. I would like to make a chart on excel file with vb and I can make it with this code.

With oChart
.SeriesCollection.NewSeries
.ChartType = xlColumnStacked
.SeriesCollection(1).XValues = oSheet.Range("A1").Resize(1, 10)
.SeriesCollection(1).Values = oSheet.Range("A2").Resize(1, 10)
End with

It works fine for 1 serie.

But I have 2 series to make, first serie is column type chart and second serie is line type chart. And I put this code.

With oChart
.SeriesCollection.NewSeries
.ChartType = xlColumnStacked
.SeriesCollection(1).XValues = oSheet.Range("A1").Resize(1, 10)
.SeriesCollection(1).Values = oSheet.Range("A2").Resize(1, 10)

.SeriesCollection.NewSeries
.ChartType = xlLine
.SeriesCollection(1).XValues = oSheet.Range("A1").Resize(1, 10)
.SeriesCollection(1).Values = oSheet.Range("A3").Resize(1, 10)
End with

The result is appeared 2 series with only Line type.
How I make 2 type graph on 1 graph? Please, suggest me.

Jr.
Feb 6 '08 #1
1 1986
hello firends
i am also suffering such a problem and iaam not been able to find out stddev() in vb vtchstates so if you have any solution kindly send me
Feb 6 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Kevin Long | last post by:
Hi everybody. I was wondering if somebody out there could tell me what is wrong with this code? I'm trying to plot a chart in excel using VB. For this example, the value of the Index variable is...
0
by: TC | last post by:
Hello, Here is what I'm trying to do: -- Make sure both MS Excel and MS Word are running -- Create an Excel chart -- Save the Excel file -- Copy the Excel chart onto the clipboard using Ctrl...
8
by: deko | last post by:
When using automation (and especially with early binding) I've heard it is best to use explicit references to everything. For example: Dim xlChart as Excel.Chart rather than Dim objChart...
0
by: Zero | last post by:
A B C D E Date Open High Low Close Chart = (Excel._Chart)oWB.Charts.Add(missing,missing,missing,missing); Chart.HasLegend = false; Chart.ChartWizard(...
1
by: Robin Tucker | last post by:
Heres and interesting problem: I have a VB.NET program that creates reports via. Word Automation. This all works fine. What I want to do as part of this report generation process is to embed a...
3
by: implicate_order | last post by:
Greetings, I'm new to python and am in the process of writing a script to parse some CSV data, spread it across multiple Excel worksheets and then generate charts. I searched the internet to...
7
by: vbnetdev | last post by:
My boss wants this done in a day. I would be happy with a week! Anyway, I have a dataset filled with data and need to populate an MS word chart with it when writing a report. Any tutorials or...
1
by: vijay | last post by:
HI ALL, How to create excel chart programatically using C#.net 2005. I have created an excel file by using Gembox.Spreadsheet component.Now i want to add excel Chart to this...
1
by: Ally | last post by:
Hi all, I’m looking to plot charts in Excel from python. After some Googling I’ve found the following code: def plot(x, y, xAxisLog=False, yAxisLog=False): # acquire application object, which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.