|
-
Jan 26th, 2010, 04:29 PM
#1
Thread Starter
Hyperactive Member
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
-
Jan 27th, 2010, 01:14 AM
#2
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
-
Jan 27th, 2010, 06:49 AM
#3
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
-
Jan 27th, 2010, 10:06 AM
#4
Thread Starter
Hyperactive Member
Re: Excel activex control?
 Originally Posted by jggtz
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.
-
Jan 27th, 2010, 10:13 AM
#5
Thread Starter
Hyperactive Member
Re: Excel activex control?
 Originally Posted by westconn1
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?
-
Jan 27th, 2010, 09:30 PM
#6
Re: Excel activex control?
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
-
Jan 28th, 2010, 02:40 AM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|