Results 1 to 5 of 5

Thread: Excel Worksheet/Graph

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    3

    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.

  2. #2
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    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

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Excel Worksheet/Graph

    Moved from ClassicVb

  4. #4
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    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

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    3

    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
  •  



Click Here to Expand Forum to Full Width