Code for filename / filename and path (Word, recent versions — except Word 2007)

June 3, 2009 at 7:12 pm

NOTE (added on 9/5/2009): See also the July 21, 2009 post entitled “Another Way to Add the File Name and Path,” located here. That post explains how to add the file name and path in Word 2007.

Most recent versions of Word come with built-in “AutoText” entries that allow you to insert a code for (1) a document’s name or (2) the full “path” of the document in the computer (the drive, folder, subfolder, etc. where the file is located), plus file name.**

To add the code for the file name only, position the cursor where you want the code to go, then type “filename” (without quotation marks) and press F3, the trigger key. IMPORTANT: Make sure that there is no space between “file” and “name,” or the trigger won’t work. On the other hand, AutoText entries aren’t case sensitive, so it doesn’t matter whether you type in lower case, upper case, or some combination of the two.

To add the code for the entire path, including the file name, type “filename and path” (without quotation marks) and press F3. Be careful to type “filename” as a single word — as mentioned in the preceding paragraph, you need to make sure there isn’t any space between “file” and “name” — but do hit the spacebar between the words.

Once you’ve inserted the code in your document, you can select it and change the font and/or font attributes such as font size (i.e., you can make it smaller). Even cooler, you can turn it into your own customized AutoText entry so that you can insert the code without doing a lot of typing. To do so, select the code and press Alt F3. When the Create AutoText (Word 2003 and older) dialog appears, give the entry a short name or abbreviation, like “tag” (without quotation marks), and click OK. Now, when you’re ready to insert the code, type “tag” (or whatever you chose as the name) and press F3 to expand the entry.

Keep in mind that if you insert a file name or file name and path code as a footer in a template, you won’t have to add it to any specific document; it will be embedded in every document based on that template.

**The exception to this rule is Word 2007. For some reason, Microsoft didn’t include Quick Parts entries for the file name and path in that version. (Word 2007 uses the terms “Quick Parts” and “Building Blocks” instead of “AutoText.”) However, if you have an earlier version of Word, you can import your AutoText entries into Word 2007. I’ll explain how in a later post.

Advertisements

Entry filed under: Uncategorized.

Customizing the Quick Access Toolbar (QAT) in Word 2007 Update


© Jan Berinstein 2009-present. Unauthorized use and/or duplication of one or more articles posted on this blog -- i.e., without express written permission from the blog’s author -- is strictly prohibited. You may use brief excerpts and/or links, provided that you give full, accurate, and prominent credit to Jan Berinstein, with appropriate and specific direction to the original content.

Inspired By My Trainees

Some trainers teach at the speed of light. I prefer to teach at the speed of enlightenment.

Knowledge is empowering. Pass it on!

Buy my Word 2016, Word 2010, or Word 2007 book

To buy my book, Formatting Legal Documents With Microsoft Word 2016, on Amazon.com, click this link .

There is no preview of the Word 2016 book on Amazon, but you can see / download the Table of Contents by clicking this link to the TOC.

To buy my book, Formatting Legal Documents With Microsoft Word 2010, on Amazon.com, click this link .

There is no preview of the Word 2010 book on Amazon. However, you can see a preview - or buy a slightly older version of the book - on Lulu.com by clicking the gray "Buy Now - Lulu" button.
Support
independent publishing: Buy this book on Lulu.

To buy my first book, Formatting Legal Documents With Microsoft Office Word 2007 on Amazon.com, click this link. There is no preview of the Word 2007 book on Amazon. However, you can see a preview - or buy a slightly older version of the book - on Lulu.com by clicking the blue "Buy Now - Lulu" button.
Support independent publishing: buy this book on Lulu.

One good tip deserves another

Have you learned something useful from these tips? If so, please express your appreciation (and help keep the blog going) by contributing $5.00, $10.00, or more. It's easy!

Many thanks for your support!

NOTE: Your donation is not tax-deductible (but it does support a worthy cause!).


%d bloggers like this: