CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2000
    Posts
    72

    help please. cant i ever use excel ?

    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.


  2. #2
    Join Date
    Sep 1999
    Location
    London , UK
    Posts
    22

    Re: help please. cant i ever use excel ?

    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





  3. #3
    Join Date
    Jan 2000
    Posts
    72

    whats the difference?

    is the microsoft excel 8.0 object library reference newer version of excel 7.0.
    i have excel 8.0 object library.


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

Featured