Article ID: 164622
Article Last Modified on 1/19/2007
APPLIES TO
- Microsoft Word 97 Standard Edition
This article was previously published under Q164622
SYMPTOMS
When you record a macro to insert a picture(on the Insert menu, point
to Picture and click From File), and
-and-
- the picture is located in the same folder or in a folder belonging to
the same folder as your document,
the macro records an absolute path for the picture instead of recording
a relative path as expected. When the macro is run, the field code used
for the linked picture is an absolute path instead of a relative path.
WORKAROUND
To change the path for the linked picture, edit the recorded macro and
change the path for the linked picture from "absolute" to "relative."
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
REFERENCES
For more information about getting help with Visual Basic for Applications,
please see the following article in the Microsoft Knowledge Base:
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: wordcon vb vba vbe
Keywords: kbbug kbdtacode kbgraphic kbpending kbprogramming KB164622