Solved

Export from Access to Multiple Excel Sheets

Posted on 2011-02-13
4
488 Views
Last Modified: 2012-05-11
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.
0
Comment
Question by:vsllc
  • 2
  • 2
4 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 34885460
0
 

Author Comment

by:vsllc
ID: 34885522
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?
0
 
LVL 120

Assisted Solution

by:Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1) earned 500 total points
ID: 34885531
you will need the codes from this link

http://www.lebans.com/callbackbrowser.htm
0
 

Author Comment

by:vsllc
ID: 35118608
Perfect!  Thanks.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question