Results 1 to 2 of 2

Thread: Export a file in EXCEL format

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    3

    Angry

    Hi
    I'm a VB programmer and I ussaly access my files through ODBC driver using ADODB recordset and SQL statements. I want to export the result of thew sql request in Excel format. How can I do it ?

    Helping me = Saving me

    Thanx
    CU

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    You have 2 choices :

    Choice 1 : Comma-Delimited
    Export it as a text file with commas seperating your data elements.

    Excel can read these files and place them into their appropriate columns but this is only good for raw data.

    Choice 2 : True XLS Format
    To do this you need to connect to the excel object (Look up CreateObject) and to control it as if you were constructing your own excel file using VB macros.

    This is a lengthy process and requires you to know VBA quite well for Excel. It will also load Excel into the background (ie cannot see in task bar but can see in Task Manager) and has the occational tendancy to go wrong.

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