Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Jul 2001
    Posts
    283
    Thanks
    0
    Thanked 0 Times in 0 Posts

    export data to Excel (Access 2003)

    I have tried to use the TransferSpreadsheet method to export a table to an Excel file. However, I cannot understand what to do with the parameter UseOA (the last entry in the method).

    Thanks

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: export data to Excel (Access 2003)

    Simply omit this argument. According to the help for TransferSpreadsheet:
    <hr>UseOA Optional Variant. This argument is not supported.<hr>
    So there is nothing you can do with it.

  3. #3
    3 Star Lounger
    Join Date
    Jul 2001
    Posts
    283
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: export data to Excel (Access 2003)

    but I got an error when I execute the code saying object required.

    I can create a macro to do the export without a problem. I have no idea doing it in codes.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: export data to Excel (Access 2003)

    Can you post the line that causes the error?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •