Microsoft KB Archive/39327

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 19:22, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q39327 to Microsoft KB Archive/39327 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Word Macro That Inserts Filename in Document

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

4.00 5.00 5.50 6.00

MS-DOS

SUMMARY

A filename stamp, similar to the built-in date and time stamps, can be created with the following macro:

<Ctrl Esc>ts<<IF FIELD="">><Esc>Untitled<<ELSE>><<SET filename=FIELD>> <Esc><<filename>><<ENDIF>>

This macro takes the filename and inserts it into a document. If the document hasn’t been named yet, the macro inserts the word “Untitled”.

This macro is included in the Word 5.00 MACRO.GLY file. The name of the entry is FILENAME.MAC^<CTRL+F>N.

In Word 5.50, the following macro inserts the filename:

<Ctrl Esc>fa<<IF FIELD="">><esc>Untitled<<ELSE>> <<SET filename=FIELD>><esc><<filename>><<ENDIF>>

This macro is included in the Word 5.50 MACRO.GLY file. The name of the entry is FILENAME.MAC^<CTRL+V>7.

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