PC Review


Reply
Thread Tools Rate Thread

Cannot expand named range.

 
 
Dom
Guest
Posts: n/a
 
      3rd Sep 2009
I have an Access 2007 database which exports data to various Excel 2003
spreadsheets.

The code has been working successfully for about 2 years (it was previously
in Access 2003) until this week when I got the 3434 Error 'Cannot Expand
Named Range'. This only happens on 1 of the 10 Excel files.

Each Excel file is exactly the same - the only differences are the content
and quanitity of the data. The formats are the same.

I've tried deleting the Excel file and re-running the export for the problem
file, but I get the same error after the initial export.

When I delete the Named Range from the Excel File, the export works fine but
creates a new Tab for the data. When I run the code again, the same error
appears.

I have tried re-importing all the source data into Excel. Same error.

The file it's failing on has ~ 40,000 rows. I thought it may be this so I
tried exporting 5,000 rows but had the same error. Other files have >10,000
rows and they work fine so I don't think it's a size issue.

I am at a loss as to what may be causing this so any help, hints or clues
would be greatly appreciated.

Thanks

 
Reply With Quote
 
 
 
 
Ken Snell [MVP]
Guest
Posts: n/a
 
      3rd Sep 2009
See if the information in this article shed some light on why you're seeing
this error:

Using the Range Argument of TransferSpreadsheet when Exporting Data to an
EXCEL File (VBA)
http://www.accessmvp.com/KDSnell/EXC...t.htm#ExpRange

--

Ken Snell
<MS ACCESS MVP>
http://www.accessmvp.com/KDSnell/


"Dom" <(E-Mail Removed)> wrote in message
news:A8D9A4C7-4C31-4985-86FB-(E-Mail Removed)...
>I have an Access 2007 database which exports data to various Excel 2003
> spreadsheets.
>
> The code has been working successfully for about 2 years (it was
> previously
> in Access 2003) until this week when I got the 3434 Error 'Cannot Expand
> Named Range'. This only happens on 1 of the 10 Excel files.
>
> Each Excel file is exactly the same - the only differences are the content
> and quanitity of the data. The formats are the same.
>
> I've tried deleting the Excel file and re-running the export for the
> problem
> file, but I get the same error after the initial export.
>
> When I delete the Named Range from the Excel File, the export works fine
> but
> creates a new Tab for the data. When I run the code again, the same error
> appears.
>
> I have tried re-importing all the source data into Excel. Same error.
>
> The file it's failing on has ~ 40,000 rows. I thought it may be this so I
> tried exporting 5,000 rows but had the same error. Other files have
> >10,000

> rows and they work fine so I don't think it's a size issue.
>
> I am at a loss as to what may be causing this so any help, hints or clues
> would be greatly appreciated.
>
> Thanks
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot expand named range Rand8203 Microsoft Access Macros 1 10th Feb 2009 04:06 AM
Cannot Expand Named Range Cathy Microsoft Access Form Coding 2 5th Feb 2009 05:54 AM
Re: cannot expand named range gllincoln Microsoft Access External Data 1 12th Jan 2009 03:35 PM
Cannot Expand Named Range - Help Snig Microsoft Excel Discussion 5 3rd Aug 2005 05:34 PM
Cannot Expand Named Range - when size of the Range exceeds Snig Microsoft Excel Misc 1 7th Jul 2005 01:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:38 AM.