Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Can I autotext a filepath only?
Can I create or modify an autotext entry to show only the path to a file and
not the name of the file (document). I need the path as a location in the footer but the document name is already included elsewhere. I'm using Word 2003 at work. |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Can I autotext a filepath only?
I don't see why not. Have you tried it?
-- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Double F" Double wrote in message news Can I create or modify an autotext entry to show only the path to a file and not the name of the file (document). I need the path as a location in the footer but the document name is already included elsewhere. I'm using Word 2003 at work. |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Can I autotext a filepath only?
The following macro will insert the path of the active document.
Sub InsertPath() Dim pPathname As String With ActiveDocument If Not .Saved Then .Save End If pPathname = Left$(.FullName, (Len(.FullName) - Len(.Name) - 1)) End With Selection.TypeText pPathname End Sub http://www.gmayor.com/installing_macro.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Double F wrote: Can I create or modify an autotext entry to show only the path to a file and not the name of the file (document). I need the path as a location in the footer but the document name is already included elsewhere. I'm using Word 2003 at work. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Repost re. autotext addition of filepath & name > | Microsoft Word Help | |||
autotext - help me please! | Microsoft Word Help | |||
Can you solve this one??? Template mixing with autotext | Microsoft Word Help | |||
Autocomplete for autotext not working? | Microsoft Word Help | |||
Using form text fields included in an IF Statement with autotext | Microsoft Word Help |