Results 1 to 3 of 3

Thread: how to open excel file in microsoft access 2003?

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Location
    malaysia
    Posts
    89

    Resolved how to open excel file in microsoft access 2003?

    Hi guys, why i got probelm open an excel file in microsoft access 2003?
    please help.


    Dim xlApp As Excel.Application
    Dim xlBook As Excel.Workbook
    Dim xlWSheet As Excel.Worksheet

    Set xlApp = New Excel.Application
    xlApp.Workbooks.Open Filename:=Me.txtFilePath.Value
    Set xlBook = xlApp.Workbooks
    Set xlWSheet = xlBook.Worksheets(1)

    when my code run until the open method, it come out error, of "application deined error or object-defined error".

    i think Access 10 and Access 11 use different open method.
    can anyone help or give a code snippet?
    Last edited by kkc; Oct 11th, 2005 at 05:04 AM. Reason: resolved

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