Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I transfer data to an Excel file from Ms Access using TransferSpreadsheet. If I try to transfer data to the same Excel file again using TransferSpreadsheet, I get the error message that the sheet already exists. I tried renaming the sheet, but I still get the same error message. Like say I transfer tblData, I get a sheet in Excel called tblData. So I rename that sheet to shtSomething (and there are no other sheets, or I have also tried having another sheet - say Sheet1). Even though I renamed tblData to shtSomething, I still get the error message that tblData still exists. The only workaround I have found so far is to copy the data from tblData sheet to another sheet and delete the tblData sheet. It appears that Excel is remembering the tblData sheet at a lower level of coding than VBA. Is there a way to rename the sheet at that level (API code maybe?) or do I have to stick with copying the data to another sheet and deleting the TransferSpreadsheet sheet? Thanks, Rich |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do i rename a sheet if the rename tab is inactive? | Excel Worksheet Functions | |||
TransferSpreadsheet to colored fields | Excel Worksheet Functions | |||
Access 2003: transferspreadsheet writes over existing spreadsheet | Excel Discussion (Misc queries) | |||
Please post this thread a complete correct method, method about te | New Users to Excel | |||
What hyperlink method if any supports target rename? | Links and Linking in Excel |