Article ID: 162407
Article Last Modified on 10/11/2006
APPLIES TO
- Microsoft Excel 97 Standard Edition
- Microsoft Excel 95 Standard Edition
This article was previously published under Q162407
SYMPTOMS
When you run a Visual Basic for Applications macro in Microsoft Excel 7.0
or Microsoft Excel 97, you may receive one of the following error messages:
Run-time error '1004':m
Cannot open Microsoft Excel Add-In for editing. Please edit the source
document instead.
Run-time error '1004':
Cannot open Microsoft Excel 97 Add-In for editing. Please edit the
source document instead.
CAUSE
This problem occurs if the following conditions are true:
- The macro you are running opens a Microsoft Excel add-in file (a .xla
file).
-and-
- You run the macro using a shortcut key that includes the SHIFT key.
For example, you press the following keystroke:
WORKAROUND
To work around this problem, do not assign a shortcut key that includes the
SHIFT key to any macro that opens any type of file.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
Additional query words: XL97 XL7 XL
Keywords: kberrmsg KB162407