473,396 Members | 2,013 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.

Line intercept - mschart

Hi.
i have i problem such as getting the intercept point for my graph which
is made in MSgraph Access 2003. the lines in the graph is from tabel
and , i need some idea for some vba code to get the intercept point for
the lines.

Jan 4 '06 #1
2 2683
Geagleeye wrote:
i have i problem such as getting the intercept point for my graph which
is made in MSgraph Access 2003. the lines in the graph is from tabel
and , i need some idea for some vba code to get the intercept point for
the lines.


I have no idea what the answer to your question is, but a possibility,
pointed out to me by Steve Santos a little while ago, is to download the
following app from the MS site. It shows, I believe, sample chart
manipulation in Access and may have the answer to your question (watch
for wrap):

http://download.microsoft.com/downlo...-us/vbagrp.exe

Alternatively, if the above link is broken in your news reader, try
http://tinyurl.com/cmbj3

If this does not help you, what I've found very useful in the past when
trying to manipulate various properties of the graph has been to open
EXcel. Start recording an Excel macro and go through the setting up of
your graph, including where the intecept point is.

Save the macro and then look at the VBA editor for the macro. There are
sometimes still some soggy ground that has to be traversed - the object
browser can be an enormous help here - but it at least gives you a
starting point.

Sorry I don't have a direct answer to your question, but if you don't
get a response, try the above two ideas.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Jan 4 '06 #2
Red
Ahh... another question that I can't really answer, but can possibly
help.... and obviously blow off a little more work... woo hooo....

Here's a GREAT link for you to help you in your search for MS Graph
help...
(this is actually for 97, but, you can find later versions from there)
http://msdn.microsoft.com/archive/de.../D6/S5B5EF.asp

BUT....

If you know what you want to do, and you can do it in Excel, do like
Tim Marshall said...
1) Export data to excel
2) Record a macro to do what you want
3) convert macro into a string (really, it's not that hard)
4) Run macro after exporting information from Access!

i.e... here's a quickie for you, to learn how to do what I just said...
(copy and paste into a module and watch it do it's THING! :D )

Private Sub ExcelTest()
Dim XLS As Object, Wkb As Object, strCode As String
Dim X As Integer, Y As Integer, Z As Integer
'XLS is our application object
Set XLS = CreateObject("Excel.Application")
XLS.Application.Visible = True
XLS.Application.workbooks.Add
'Wkb is our worksheet object
Set Wkb = XLS.Application.activeworkbook.worksheets(1)

'Fill our worksheet with some information
X = 0
For X = 1 To 10
For Y = 1 To 10
Z = Y * X
Wkb.cells(X, Y) = Z
Next Y
Next X

'Now make the macro
strCode = "Sub MakeChart()" & vbcrlf & _
" Charts.Add" & vbcrlf & _
" ActiveChart.ChartType = xlColumnClustered" & vbcrlf & _
" ActiveChart.SetSourceData Source:=Sheets(" & Chr(34) & "Sheet1" &
Chr(34) & ").Range(" & Chr(34) & "A1:J10" & Chr(34) & "),
PlotBy:=xlRows" & vbcrlf & _
" ActiveChart.Location Where:=xlLocationAsNewSheet, Name:=" &
Chr(34) & "Tada!" & Chr(34) & vbcrlf & _
" With ActiveChart" & vbcrlf & _
" .HasTitle = True" & vbcrlf & _
" .ChartTitle.Characters.Text = " & Chr(34) & "Tada!" & Chr(34)
& vbcrlf & _
" .Axes(xlCategory, xlPrimary).HasTitle = False" & vbcrlf & _
" .Axes(xlValue, xlPrimary).HasTitle = False" & vbcrlf & _
" End With" & vbcrlf & _
"End Sub"
'Add the macro to the workbook
XLS.activeworkbook.VBProject.VBComponents.Item(1). CodeModule.AddFromString
strCode
'Run the macro! :D
XLS.Application.Run "Thisworkbook.MakeChart"

End Sub
(I've been dieing to show taht to someone :D )

Jan 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gerhard Swart | last post by:
Good Morning, I have a licensed .Net product. Meaning I can develop and deploy my projects. I want to use MSChart in my latest project. Now I am not sure about the licensing of MSChart. As far...
2
by: Steven Nagy | last post by:
Hi all, Is there a more interactive .NET component that does what the MSChart does? Perhaps someone has developed something similar that is available or for sale. My requirement is for a...
1
by: Lionel | last post by:
Hi everyone, I've been practicing C# by writing some programs with the downloadable SDK from Microsoft. I'm writing the programs using Notepad and compiling with the command line compiler. I...
5
by: Richard | last post by:
I don't know any thing about c#, I really need to do this in visual c++. I don't manually wrap the dll but since it's called AxInterop.OWC10.dll I assume visual studio has done that for me. ...
1
by: wayne | last post by:
hi, i understand that i m able to use mschart to plot a line graph. i got list of values (jus one column) to b plotted into a line graph. how ca i do it using mschart in visual c++?? thanks...
0
by: kowndinya | last post by:
I want to show some data using MSChart with Horizontal Bars with Fill color similar to Column type. I don't want to use Line type. Is It possible with MSChart in VB6. or is it possible to rotate the...
0
debasisdas
by: debasisdas | last post by:
Here's a simple VB6 code snippet that uses the MSChart control to display Charts in VB6.0. To use this sample, please following steps Create a new project in VB6 Pull down the Project menu and...
0
by: ian dean | last post by:
How do I draw a filled polygon in mschart (on line plot). This needs to be on a chart form and not on a form directly.
10
Mas Juliza Alias
by: Mas Juliza Alias | last post by:
I have a table (MSFlexgrid1) in a form (frmCalculate) containing 2 columns of Depth and Volume data. I want to draw a line graph of Depth Vs Volume in a new form (frmGraph) by using MSChart control....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.