# Exporting to Excel 2007

**URL:** <https://forums.toadworld.com/t/exporting-to-excel-2007/6412>\
**Category:** Toad Data Point & Toad Intelligence Central\
**Created:** [December 6, 2010, 10:58am UTC](https://forums.toadworld.com/t/exporting-to-excel-2007/6412 "2010-12-06T10:58:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljwillia\_640](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@ljwillia\_640](https://forums.toadworld.com/u/ljwillia_640)\
**Post date:** [December 6, 2010, 10:58am UTC](https://forums.toadworld.com/t/exporting-to-excel-2007/6412/1 "2010-12-06T10:58:47Z")

</div>

Is anyone having an issue with exporting to xlsx format? Each time I try to export to my xlsx template TDA completely wipes out my spreadsheet. When I go to the file to open it the file name is there but the spreadsheet itself is gone, only the Excel main window remains. If I try to open the spreadsheet from inside TDA, I am asked to load the Excel software to my computer.

Here is the error script----------  
– 12/6/2010 11:10:24 AM: Monthly\_HQ\_Data.log: Attempted export 55 rows.  
– 12/6/2010 11:10:24 AM: Monthly\_HQ\_Data.log: Successfully exported 55 rows.  
– 12/6/2010 11:10:24 AM: Monthly\_HQ\_Data.log: Export Finished, click Timely Response monthly.xlsx to view file.  
– 12/6/2010 11:10:24 AM: Monthly\_HQ\_Data.log: Specified argument was out of the range of valid values.  
–Parameter name: firstCol or lastCol  
– 12/6/2010 11:10:24 AM: Monthly\_HQ\_Data.log: at Quest.Toad.Workflow.Activities.Database.ExportWizardActivity.Execute(ActivityExecutionContext executionContext)  
– 12/6/2010 11:10:24 AM: Monthly\_HQ\_Data.log: Continuing after error  
– 12/6/2010 11:10:24 AM: Monthly\_HQ\_Data.log: Send email  
– 12/6/2010 11:10:25 AM: Monthly\_HQ\_Data.log: Email successfully sent

After this happened the first time and I have to re-build my spreadsheet and made copies, but so far this am I have destroyed 6 copies of the spreadsheet trying to figure out why the wizard is not taking my ranges.

Thanks,

Lorinda Selby

---

<div class="post-metadata">

**Author:** ![Debbie\_Peabody](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/debbie_peabody/32/18_2.png) [@Debbie\_Peabody](https://forums.toadworld.com/u/Debbie_Peabody)\
**Post date:** [December 6, 2010, 12:40pm UTC](https://forums.toadworld.com/t/exporting-to-excel-2007/6412/2 "2010-12-06T12:40:45Z")

</div>

Is this the excel file that we put the macro in to clear the data prior to export? That would explain the cleared file.

If that is the case we should concentrate on the argument out of range issue. Can you run script with verbose logging and send me the log?

Debbie

---

<div class="post-metadata">

**Author:** ![ljwillia\_640](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@ljwillia\_640](https://forums.toadworld.com/u/ljwillia_640)\
**Post date:** [December 6, 2010, 12:52pm UTC](https://forums.toadworld.com/t/exporting-to-excel-2007/6412/3 "2010-12-06T12:52:52Z")

</div>

No, this was a brand new file with out macros. I have three different scripts running together on this export so I am trying them one at a time to see if I can narrow down the issue.

---

<div class="post-metadata">

**Author:** ![matthew.raymo](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@matthew.raymo](https://forums.toadworld.com/u/matthew.raymo)\
**Post date:** [July 9, 2013, 7:22am UTC](https://forums.toadworld.com/t/exporting-to-excel-2007/6412/4 "2013-07-09T07:22:51Z")

</div>

I see this thread is a couple years old. However, we appear to have this same issue and I was wondering if there was a resolution to this. Thank you.
