you can try look for OLE object that available by default in VB6. You can select it from the ToolBox.
Main Topics
Browse All Topicshello everyone:
I need to be able to insert an Excel spreadsheet in a Visual Basic 6.0 form so that users can play with the spreadsheet as they do with Excel. I have seen several Active X components that will do just that but they are not free. there must be a way that you can use something from MS. please i am looking for a solution that will not involve having to buy an ActiveX. code will be great.
thank you in advance
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Try this http://support.microsoft.c
it's the DSOFramer control, it works like Excel
hello vinnyd79:
i have placed the web control on the form like you suggested. i am able to display the Excel doc on the web component. the problem now is that I would like to access at the row and col level the content of the excel spreadsheet that the users will modify after following specific rules designed to accomplish a specific task (out of scope on this discussion). is there a way to access the content of the excel spreadsheet "currently" displayed on the web component?
thank you !
You could try using GetObject. Here is a simple example.
Private Sub Command1_Click()
WebBrowser1.Navigate2 ("C:\Test.xls")
End Sub
Private Sub Command2_Click()
Dim xlApp As Object, xlWb As Object, xlWs As Object
On Error Resume Next
Set xlApp = GetObject(, "Excel.Application")
If Not xlApp Is Nothing Then
Set xlWb = xlApp.ActiveWorkBook
Set xlWs = xlWb.ActiveSheet
MsgBox xlWs.Cells(5, 5) ' get data from row 5 col 5
MsgBox xlWs.Cells(5, 6) ' get data from row 5 col 6
' add text to row 3 column 4
xlWs.Cells(3, 4) = "MY DATA!!!!"
End If
Set xlWs = Nothing
Set xlWb = Nothing
Set xlApp = Nothing
End Sub
Business Accounts
Answer for Membership
by: vinnyd79Posted on 2007-06-12 at 18:51:22ID: 19271278
You can try the webbrowser control: Projects>Components>Micros oft Internet Controls.
ER
Private Sub Command1_Click()
' open excel file
WebBrowser1.Navigate2 ("C:\Test.xls")
End Sub
Private Sub Command2_Click()
' save data
WebBrowser1.ExecWB OLECMDID_SAVE, OLECMDEXECOPT_DONTPROMPTUS
End Sub