|
-
Sep 13th, 2005, 12:03 AM
#1
Thread Starter
New Member
Excel Worksheet/Graph
Hi All,
I need to be able to access and place values in a worksheet that is placed on a form. From this I need create a graph on the data. BUT HOW!!
I don't want to open Excel from VB6, just access the worksheet.
I've tried everything and it's driving me MAD. Surely it can't be that difficult, or is it.
Please help.
Dave R.
-
Sep 13th, 2005, 01:11 AM
#2
Re: Excel Worksheet/Graph
Dave,
Welcome to vbf.
by accessing the worksheet do you mean one that has been included as an OLE Object?
Danny
Never Think Impossible
If you find my answer helpful then please add to my reputation
-
Sep 13th, 2005, 06:24 AM
#3
Re: Excel Worksheet/Graph
-
Sep 13th, 2005, 07:17 AM
#4
Re: Excel Worksheet/Graph
Hack,
I think this is actually VB6 using a OLE embedded spreadsheet..
Danny
Never Think Impossible
If you find my answer helpful then please add to my reputation
-
Sep 13th, 2005, 09:01 PM
#5
Thread Starter
New Member
Re: Excel Worksheet/Graph
Hi Danny,
What I've done is 'Right-Click' on the 'General Tool Bar' and use 'Components/Insertable Objects' to be able to get the Excel Graph and place this item on a form in the same way as other objects. This includes a sreadheet and graph sheet already with data
I tried to place values into the spreadsheet using:
Graph1.Sheet1.cells(1,1)=12
and other similar calls, but I keep getting error messages. If I deliberatly place values I can then probagate a graph, but I need to put values from equations in there.
I'm pretty new to VB of any level, only being a Turbo Basic programmer with limited experience.
Rgds,
Dave R.
P.S. Well done in the cricket, but we let you win, only kidding I'm a Aussie/Pom since 1982
Last edited by Bootie; Sep 13th, 2005 at 09:20 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|