By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,334 Members | 2,776 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,334 IT Pros & Developers. It's quick & easy.

Open an Excel file from Access

P: n/a
I want to export a table to Excel then open it .......

DoCmd.TransferSpreadsheet acExport, 3, "Table", "ExcelTable", True

..... exports it ... I would like to open it, and possibly even close Access!

Ideas?
Oct 24 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Tue, 24 Oct 2006 17:07:43 +0100, JohnM wrote:
I want to export a table to Excel then open it .......

DoCmd.TransferSpreadsheet acExport, 3, "Table", "ExcelTable", True

.... exports it ... I would like to open it, and possibly even close Access!

Ideas?


DoCmd.TransferSpreadsheet acExport, 3, "Table",
"C:\FolderName\FileName.xls", True

Application.FollowHyperlink "C:\FolderName\FileName.xls"

DoCmd.Quit

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Oct 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.