Solved

Export from Access to Multiple Excel Sheets

Posted on 2011-02-13
4
490 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

830 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