Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
Anyway to get just the path without the filename?
I can use the Filename field with the \p switch to get the filename
including the path ({FILENAME \p }). Is there any way to get just the path without the filename? |
#2
Posted to microsoft.public.word.newusers
|
|||
|
|||
Anyway to get just the path without the filename?
I'm curious: What good is the path without a file name?
-- JoAnn Paules MVP Microsoft [Publisher] Tech Editor for "Microsoft Publisher 2007 For Dummies" "Sesquipedalian Sam" wrote in message ... I can use the Filename field with the \p switch to get the filename including the path ({FILENAME \p }). Is there any way to get just the path without the filename? |
#3
Posted to microsoft.public.word.newusers
|
|||
|
|||
Anyway to get just the path without the filename?
On Fri, 13 Nov 2009 11:13:10 -0500, "JoAnn Paules"
wrote: I'm curious: What good is the path without a file name? I want to display them separately -- either on separate lines or in separate columns of a table. |
#4
Posted to microsoft.public.word.newusers
|
|||
|
|||
Anyway to get just the path without the filename?
I am sure you cannot. The \p is a 'field specific' switch (i.e. it only
works with FILENAME). -- Terry Farrell - MSWord MVP "Sesquipedalian Sam" wrote in message ... I can use the Filename field with the \p switch to get the filename including the path ({FILENAME \p }). Is there any way to get just the path without the filename? |
#5
Posted to microsoft.public.word.newusers
|
|||
|
|||
Anyway to get just the path without the filename?
Not with fields, but it is simple enough to achieve with a macro
Sub InsertPath() With ActiveDocument If Len(.Path) = 0 Then .Save Selection.TypeText .Path & "\" End With 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 Sesquipedalian Sam wrote: I can use the Filename field with the \p switch to get the filename including the path ({FILENAME \p }). Is there any way to get just the path without the filename? |
#6
Posted to microsoft.public.word.newusers
|
|||
|
|||
Anyway to get just the path without the filename?
On Sat, 14 Nov 2009 09:45:13 +0200, "Graham Mayor"
wrote: Not with fields, but it is simple enough to achieve with a macro Sub InsertPath() With ActiveDocument If Len(.Path) = 0 Then .Save Selection.TypeText .Path & "\" End With End Sub http://www.gmayor.com/installing_macro.htm Thank you very much. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
path and filename | New Users | |||
always include path in filename | New Users | |||
Filename and Path | Microsoft Word Help | |||
Filename and path | Microsoft Word Help | |||
Insert > Autotext is missing "filename" and "filename and path"; how to get back? | New Users |