Click to See Complete Forum and Search --> : help please. cant i ever use excel ?


coolily
January 4th, 2000, 02:44 PM
i want to access excel from a form in vb for which i declared
Public anyvariable As Excel.Application
this does not seem to work.
what can i do to access excel data from a vb form. help please.

dave clarke
January 5th, 2000, 03:53 AM
What is the returned error, have you set the reference to the Excel COM in Project->References?

Dim xclApp as Excel.Application
set xclApp = new Excel.Application
xclApp.Workbooks.Open FileName:="myfile.xls", ReadOnly:=true

coolily
January 6th, 2000, 11:23 AM
is the microsoft excel 8.0 object library reference newer version of excel 7.0.
i have excel 8.0 object library.