Results 1 to 7 of 7

Thread: Excel activex control?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Location
    Bloomingdale, IL USA
    Posts
    284

    Excel activex control?

    I am creating a program with an access database and a vb6 front end.

    I need to know if there is a way to embed an excel spreadsheet into a form and "link" a cell defined by the user to a text box in the program.

    It has to be dynamic because the spreadsheets will be used by the accountants to show how they came up with calculations. Also, the "link" will need to automatically update the spreadsheet if the numbers in the program change.

    Any suggestions would be greatly appreciated. I tried searching on line but haven't come across what I am looking for.

    Thank you.
    Chrissy

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Excel activex control?

    Instead of embed excel into a form why not to automate excel from vb6
    The next link could help you a lot --->
    http://www.vbforums.com/showthread.php?t=391665

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Excel activex control?

    you can embed an excel workbook in an ole contaier
    add the ole to your form, from the toolbox

    not to say i would recommend this method
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Location
    Bloomingdale, IL USA
    Posts
    284

    Re: Excel activex control?

    Quote Originally Posted by jggtz View Post
    Instead of embed excel into a form why not to automate excel from vb6
    The next link could help you a lot --->
    http://www.vbforums.com/showthread.php?t=391665
    Thanks for the suggestion... I am already familiar with creating/opening/reading/writing using Excel from within Vb. I was looking for something that gave the freedom of an excel spreadsheet but can also work with the program. Certain fields from the program would link to the spreadsheet and the spreadsheet would need to be automatically updated if the numbers within the program changed.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Location
    Bloomingdale, IL USA
    Posts
    284

    Re: Excel activex control?

    Quote Originally Posted by westconn1 View Post
    you can embed an excel workbook in an ole contaier
    add the ole to your form, from the toolbox

    not to say i would recommend this method

    I did see this but I have no idea how to use it. Why would you not recommend it?

  6. #6
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Excel activex control?

    try it for yourself!!
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  7. #7
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: Excel activex control?

    i checked into that method a few yrs ago and i think i did not go that route
    because it made my downloaded a lot bigger. I think that was the reason
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

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