Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 231840 - Last Review: July 28, 2006 - Revision: 5.4
BUG: Hyperlinks in Embedded Excel Workbook Do Not Work
This article was previously published under Q231840
When you click a hyperlink in an embedded Microsoft Excel
workbook, Excel generates the following error and does not select the range
indicated by the hyperlink:
An Unexpected Error Has
Occurred
This problem occurs when you embed either a new or existing
Excel workbook. The problem does not occur when you link to an existing
workbook.
The error occurs with the following containers:
- Microsoft Visual C++ Application
- Microsoft Visual Basic Application
- Microsoft Access
- Microsoft PowerPoint
- Microsoft OutlookNOTE: The problem does not occur when you embed an Excel workbook in a
Microsoft Word document.
To work around this problem, you can link to the Microsoft
Excel workbook instead of embedding it. Note that a linked object cannot be
edited in-place; the linked object will be opened in a new window for editing.
Microsoft has confirmed that this is a problem in Microsoft Excel 97, Microsoft Excel 2000, Microsoft Excel
2002, and Microsoft Office Excel 2003.
Steps to Reproduce the Problem
For illustration purposes, the following steps demonstrate the
problem using Microsoft PowerPoint 2000 as the container. Similar steps in the
other containers listed in the "Cause" section of this article will generate the same error:
- Start a new presentation in Microsoft PowerPoint
2000.
- Click Object on the Insert menu.
- When the Insert Object dialog box appears, select Microsoft Excel Worksheet in the Object Type list, and click OK. The embedded workbook will be activated in-place.
- With cell A1 selected, right-click and choose Hyperlink on the shortcut menu. Choose Place in this Document for Link to, type B5 for the cell reference, and then
click OK.
- Click the hyperlink in A1. You receive the error:
An
unexpected error has occurred
To work around this problem, link to
an existing Excel workbook. To link to a workbook using the steps above, in
step 3, when the Insert Object dialog box appears, select Create From File, click Browse to locate the workbook, check the Link checkbox, and then click OK.
APPLIES TO
- Microsoft Office Excel 2003
- Microsoft Excel 2002 Standard Edition
- Microsoft Excel 2000 Standard Edition
- Microsoft Excel 97 Standard Edition
- Microsoft Office Access 2003
- Microsoft Access 2002 Standard Edition
- Microsoft Access 2000 Standard Edition
- Microsoft Access 97 Standard Edition
- Microsoft Visual C++ 5.0 Professional Edition
- Microsoft Visual C++ 6.0 Professional Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Office Outlook 2003
- Microsoft Outlook 2002 Standard Edition
- Microsoft Outlook 2000 Standard Edition
- Microsoft Outlook 98 Standard Edition
- Microsoft Outlook 97 Standard Edition
- Microsoft Office PowerPoint 2003
- Microsoft PowerPoint 2002 Standard Edition
- Microsoft PowerPoint 2000 Standard Edition
- Microsoft PowerPoint 97 Standard Edition
- Microsoft Office XP Developer Edition
- Microsoft Office 2000 Developer Edition
| kbautomation kbbug kbinplaceact kbpending KB231840 |
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