Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exporting to Excel File
Message
 
To
16/08/2000 08:32:44
Victor Lapid
Phil. Long Distance Tel. Co.
Manila, Philippines
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00405423
Message ID:
00405437
Views:
19
>Good Evening,
>
> Any code to export a filtered recordset to an excel file?
>
> Million Thanks.

If your recordset is DAO, you can use the CopyFromRecordset method (of the Range object).

If ADO, you can copy your recordset into a array (using the GetRows method of the recordset) and then copy your array.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform