?
Solved

Export Access to EXCEL problem

Posted on 2014-03-21
3
Medium Priority
?
308 Views
Last Modified: 2014-05-14
I have an ACCESS database that exports 4 queries to EXCEL. I delete the worksheets before each export. This has been in use for about 6 months.
The size of one of the queries increased from 95 rows to 101 rows (14 columns).
That one export fails.
The others still work

The worksheet does not get deleted anymore. Consequently the export creates a new sheet with the name (NAME1).

I initially got the error message 3434Cannot exceed named range. I was not exporting to a range but when I went into the EXCEL Formula-Name Manager I fould a range for each of my worksheets. I also tried deleting the Range Name when I export and although the name was deleted, my export still did not work.

Any suggestions will be greatly appreciated.

Thankss
0
Comment
Question by:nickmark
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 51

Expert Comment

by:Gustav Brock
ID: 39945048
You can import or link a Named Range but you cannot export to it:
A string expression that's a valid range of cells or the name of a range in the spreadsheet. This argument applies only to importing. Leave this argument blank to import the entire spreadsheet. When you export to a spreadsheet, you must leave this argument blank. If you enter a range, the export will fail.
/gustav
0
 

Author Comment

by:nickmark
ID: 39945091
Thanks so much Gustav. I did not do a good job with my original post.

I am not exporting to a range, I am exporting a query to a worksheet. I do not use ranges at all but if I go to the "Formula tab" - "Name Manager" it lists each of my worksheets from A1 to the last row/column.

I tried to delete the Named Range and the delete worked but the export still failed.

This problem began when I increased the size of the export by a few rows.
0
 
LVL 51

Accepted Solution

by:
Gustav Brock earned 2000 total points
ID: 39945158
I would try with a new worksheet.

/gustav
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question