A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

DoCmd.transferSpreadsheet cannot delete spreadsheet cell



 
 
Thread Tools Display Modes
  #1  
Old April 28th, 2010, 10:42 AM posted to microsoft.public.access
Alan
external usenet poster
 
Posts: 459
Default DoCmd.transferSpreadsheet cannot delete spreadsheet cell


This is my code

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"temp_MonthlySalesReport",
"F:\Accounts\Projects\Analysis\Billlings\DSICMM\Ac cess\MonthlySalesReport",
True
Call
ModifyExportedExcelFileFormats("F:\Accounts\Projec ts\Analysis\Billlings\DSICMM\Access\MonthlySalesRe port", "temp_MonthlySalesReport1")
End Sub

Is there a way around that well let me iuse the same sheet over again???
  #2  
Old April 28th, 2010, 01:32 PM posted to microsoft.public.access
Roger Carlson
external usenet poster
 
Posts: 824
Default DoCmd.transferSpreadsheet cannot delete spreadsheet cell

What I generally do is save an empty workbook as a template, and then create
and save a new workbook based on the template. That way, I have a nice
clean workbook to export to. I've got a sample of that on my website called
ExportToExcel.mdb (http://www.rogersaccesslibrary.com/forum/topic350.html)

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Alan" wrote in message
...

This is my code

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"temp_MonthlySalesReport",
"F:\Accounts\Projects\Analysis\Billlings\DSICMM\Ac cess\MonthlySalesReport",
True
Call
ModifyExportedExcelFileFormats("F:\Accounts\Projec ts\Analysis\Billlings\DSICMM\Access\MonthlySalesRe port",
"temp_MonthlySalesReport1")
End Sub

Is there a way around that well let me iuse the same sheet over again???



  #3  
Old April 28th, 2010, 02:23 PM posted to microsoft.public.access
Alan
external usenet poster
 
Posts: 459
Default DoCmd.transferSpreadsheet cannot delete spreadsheet cell



Thanks Roger

i have tried what you have used beofre but i get a error saying USER TYPE NO
DEFINED

Dim objXLBook As Excel.Workbook

can you help?

"Roger Carlson" wrote:

What I generally do is save an empty workbook as a template, and then create
and save a new workbook based on the template. That way, I have a nice
clean workbook to export to. I've got a sample of that on my website called
ExportToExcel.mdb (http://www.rogersaccesslibrary.com/forum/topic350.html)

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Alan" wrote in message
...

This is my code

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"temp_MonthlySalesReport",
"F:\Accounts\Projects\Analysis\Billlings\DSICMM\Ac cess\MonthlySalesReport",
True
Call
ModifyExportedExcelFileFormats("F:\Accounts\Projec ts\Analysis\Billlings\DSICMM\Access\MonthlySalesRe port",
"temp_MonthlySalesReport1")
End Sub

Is there a way around that well let me iuse the same sheet over again???



.

  #4  
Old April 28th, 2010, 02:46 PM posted to microsoft.public.access
Roger Carlson
external usenet poster
 
Posts: 824
Default DoCmd.transferSpreadsheet cannot delete spreadsheet cell

When you declare an Excel object variable like that, you have to add a
Reference to Excel in your References list. In the VBA editor, go to
ToolsReferences and scroll down the list for Microsoft Excel X.0 Object
Library.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Alan" wrote in message
...


Thanks Roger

i have tried what you have used beofre but i get a error saying USER TYPE
NO
DEFINED

Dim objXLBook As Excel.Workbook

can you help?

"Roger Carlson" wrote:

What I generally do is save an empty workbook as a template, and then
create
and save a new workbook based on the template. That way, I have a nice
clean workbook to export to. I've got a sample of that on my website
called
ExportToExcel.mdb
(http://www.rogersaccesslibrary.com/forum/topic350.html)

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Alan" wrote in message
...

This is my code

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"temp_MonthlySalesReport",
"F:\Accounts\Projects\Analysis\Billlings\DSICMM\Ac cess\MonthlySalesReport",
True
Call
ModifyExportedExcelFileFormats("F:\Accounts\Projec ts\Analysis\Billlings\DSICMM\Access\MonthlySalesRe port",
"temp_MonthlySalesReport1")
End Sub

Is there a way around that well let me iuse the same sheet over
again???



.



  #5  
Old April 28th, 2010, 03:10 PM posted to microsoft.public.access
Alan
external usenet poster
 
Posts: 459
Default DoCmd.transferSpreadsheet cannot delete spreadsheet cell


i have this solve this problem now, i need to add excel object framework so
i could call the method

"Roger Carlson" wrote:

What I generally do is save an empty workbook as a template, and then create
and save a new workbook based on the template. That way, I have a nice
clean workbook to export to. I've got a sample of that on my website called
ExportToExcel.mdb (http://www.rogersaccesslibrary.com/forum/topic350.html)

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Alan" wrote in message
...

This is my code

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"temp_MonthlySalesReport",
"F:\Accounts\Projects\Analysis\Billlings\DSICMM\Ac cess\MonthlySalesReport",
True
Call
ModifyExportedExcelFileFormats("F:\Accounts\Projec ts\Analysis\Billlings\DSICMM\Access\MonthlySalesRe port",
"temp_MonthlySalesReport1")
End Sub

Is there a way around that well let me iuse the same sheet over again???



.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.