Link to home
Start Free TrialLog in
Avatar of vsllc
vsllc

asked on

Export from Access to Multiple Excel Sheets

I can successfully export a table/qry from Access to Excel using ransferspreadsheet.  I would like to take this another step and, when exporting a table, create a seperate sheet for every account that it is in the table.  The number of accounts can fluctuate in the table (which is created by a qry).  I would also like the sheet names to be the name of the account.  Is this possible?  I currently just overwirte the existing Excel workbook, but it would nice if I could choose to save this file when run instead of always overwriting the file and then opening/saving somewhere else.

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vsllc
vsllc

ASKER

OK.  Not to get ahead of myself, but I think I can follow that and tweak to meet my needs.

Quick question, this code looks to save to a specific file...

    xlObj.activeworkbook.SaveAs "C:\Documents and Settings\ss974c\Desktop\WSAVerification.xls"

How can I set this up so a user is prompted where to save and what name to save it under?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vsllc

ASKER

Perfect!  Thanks.