Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-23-2012, 05:49 PM
djreyrey djreyrey is offline * Exporting Access Data to Excel Windows 7 * Exporting Access Data to Excel Office 2007
Novice
* Exporting Access Data to Excel
 
Join Date: Mar 2010
Posts: 21
djreyrey is on a distinguished road
Default * Exporting Access Data to Excel

Hello Everyone,



Thank you for your help! I'm using the following code in Access to export data to Excel. It works fine but each time I export, it creates a new Tab in the Excel spreadsheet. Is there anyway to specify the name of the tab I want to export to and use the same tab every time?
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, _
"tblAdvancedPricing", outputFileName, True, "AdvancedPricing"
?

I would really appreciate your assistance!
Reply With Quote
  #2  
Old 03-23-2012, 10:03 PM
MarvinP MarvinP is offline * Exporting Access Data to Excel Windows 7 32bit * Exporting Access Data to Excel Office 2010 32bit
Novice
 
Join Date: Jan 2012
Location: Seattle, WA
Posts: 12
MarvinP is on a distinguished road
Default

Hi djreyrey,

The answer is:
Microsoft Access copies the exported data to the next available new worksheet in the workbook.
Found at:
http://msdn.microsoft.com/en-us/libr...ffice.10).aspx

This means you can't overwrite an old worksheet with the new data. You can rename or delete the old and rename the new worksheet.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting Timline Milstone Data OTPM Project 0 04-06-2011 02:34 AM
* Exporting Access Data to Excel Exporting PST data metfuel Outlook 2 01-19-2011 04:46 PM
Question about Outlook 2010 and exporting data sharke Outlook 0 10-17-2010 03:30 PM
Excel 07-Access 03 Data Link Issue ddw23 Excel 0 08-20-2010 09:05 AM
* Exporting Access Data to Excel Exporting data dsmithers Outlook 2 06-24-2009 09:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:48 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft