Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 205703 - Last Review: June 28, 2004 - Revision: 2.0
ACC2000: Can't Import Single Cell Excel Named Range
This article was previously published under Q205703
Novice: Requires knowledge of the user interface on single-user computers.
This article applies only to a Microsoft Access database (.mdb).
In Microsoft Access, you can import a named range from a Microsoft Excel
worksheet. However, you cannot import a named range limited to a single
cell.
Although Excel can create a named range consisting of a single
cell, Access cannot recognize such a range.
Create a named range that contains the cell with data and at least one
extra cell so that Access can recognize the range. This extra
cell may be blank. If you create a named range that contains cells in two
adjacent columns, the Access Import Wizard allows you to choose a field to exclude from the import action.
To reset a range so that it contains more than one cell, follow these
steps:
- Follow steps 1 through 7 in the "Steps to Reproduce Behavior" section later in this article.
- On the Insert menu, point to Name, and then click Define.
- In the Names In Workbook box, click Test1.
- Under Refers To, change
to read:
- Save and close the workbook.
- Close Microsoft Excel.
- Follow Steps 9 through 13 of the "Steps to Reproduce Behavior" section.
Note that the named range "Test1" now appears in the list box.
- Click Next three times to bring the dialog box to the Field options screen.
- Select Field2 and click the Do not import field (Skip) option.
- Click Finish.
Steps to Reproduce Behavior
- In Excel, create a new workbook.
- Type the following data in Sheet1:
- Select cell Al.
- On the Insert menu, point to Name, and then click Define.
- Under Names In Workbook, type Test1.
- Click OK.
- Save the workbook as Test.xls.
- Close Microsoft Excel.
- In Microsoft Access, open the sample database, Northwind.mdb.
- On the File menu, point to Get External Data, and then click Import.
- Under Files Of Type, click Microsoft Excel (*.xls).
- Locate Test.xls and click Import.
- In the Import Spreadsheet Wizard, click Show Named Ranges.
Note that the named range "Test1" does not appear in the list box.
For more information about importing data, click
Microsoft Access Help on the
Help menu, type
import data from a spreadsheet in the Office Assistant or the Answer Wizard, and then click
Search to view the topic.
For more information about named ranges, click
Microsoft Access Help on the
Help menu, type
name cells in a workbook in the Office Assistant or the Answer Wizard, and then click
Search to view the topic.
APPLIES TO
- Microsoft Access 2000 Standard Edition
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate