Microsoft KB Archive/70907

Macro to Insert the Full Path of a Document

PSS ID Number: Q70907 Article last modified on 11-02-1994

5.50 6.00

MS-DOS

= SUMMARY =

The full path and filename of the current file can be inserted into an open Microsoft Word document with the following macro.

< >  < >< >  < >

Note: Left chevron (<<) is produced by pressing CTRL+[. Right chevron (>>) is produced by pressing CTRL+].

The above macro will go into the File Save As dialog box and insert the filename and path at the current cursor location.

The above macro differs from the “File_name” macro included with Word 5.5 in that the drive, directory, and the filename are inserted. File_name macro in the MACRO.GLY file inserts the filename only (no path information).

KBCategory: kbother kbmacro KBSubcategory: Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994.