Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Double F
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor
 
Posts: n/a
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Repost re. autotext addition of filepath & name > Max Microsoft Word Help 5 October 11th 05 08:55 PM
autotext - help me please! ricaforrica Microsoft Word Help 1 June 18th 05 12:11 PM
Can you solve this one??? Template mixing with autotext ricaforrica Microsoft Word Help 1 June 17th 05 05:38 PM
Autocomplete for autotext not working? Dawn Rhoads Microsoft Word Help 1 April 14th 05 01:04 AM
Using form text fields included in an IF Statement with autotext Steve Microsoft Word Help 7 April 8th 05 08:17 AM


All times are GMT +1. The time now is 12:35 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"