![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a table that I update each morning via a schedule DTS package. I have another DTS package that does a simple SELECT * on that table and I want to dump it to Excel. The problem is that instead of overwriting Excel each morning, the DTS package appends the new data to the previous day's data - which is creating useless junk. Anyone know how I can have the DTS package just overwrite the file instead of appending to the file? -- randy volters |
#3
| |||
| |||
|
|
I have a table that I update each morning via a schedule DTS package. I have another DTS package that does a simple SELECT * on that table and I want to dump it to Excel. The problem is that instead of overwriting Excel each morning, the DTS package appends the new data to the previous day's data - which is creating useless junk. Anyone know how I can have the DTS package just overwrite the file instead of appending to the file? -- randy volters |
#4
| |||
| |||
|
|
I have a table that I update each morning via a schedule DTS package. I have another DTS package that does a simple SELECT * on that table and I want to dump it to Excel. The problem is that instead of overwriting Excel each morning, the DTS package appends the new data to the previous day's data - which is creating useless junk. Anyone know how I can have the DTS package just overwrite the file instead of appending to the file? |
#5
| |||
| |||
|
|
2. If the workbook can't be overwritten by a template workbook, I drop the table and create it again, then insert the data. Just the one sheet is affected. The others remain current. The new worksheet will appear at the end of the workbook. I have one workbook where a sheet of data underlies a pivot table which is used for a chart. I can drop and re-create the underlying data table without affecting the pivot table and the chart will have the latest data. Excel never realizes that the worksheet has been deleted and re-created. When I use the template method, Excel seems to sometimes forget what data types are in the cells. When I insert an integer into a number format cell, Excel gives me the green triangle and thinks the data is text. Dropping and re-creating the table does not have this effect. Ed |
#6
| |||
| |||
|
|
Ed, Just how do you drop the Excel worksheet before you create it? Wodger "Ed Enstrom" wrote: snip>...</snip 2. If the workbook can't be overwritten by a template workbook, I drop the table and create it again, then insert the data. Just the one sheet is affected. The others remain current. The new worksheet will appear at the end of the workbook. I have one workbook where a sheet of data underlies a pivot table which is used for a chart. I can drop and re-create the underlying data table without affecting the pivot table and the chart will have the latest data. Excel never realizes that the worksheet has been deleted and re-created. When I use the template method, Excel seems to sometimes forget what data types are in the cells. When I insert an integer into a number format cell, Excel gives me the green triangle and thinks the data is text. Dropping and re-creating the table does not have this effect. Ed |
![]() |
| Thread Tools | |
| Display Modes | |
| |