Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Filename field showing temp file info when emailed

If you open a document directly from an e-mail message (which in any case is
bad practice) then if the filename field updates it will show the temporary
file location. You have no control over the remote user's configuration. The
answer is either to convert the field to text (CTRL+SHIFT+F9) or insert it
as text in the first place using a macro e.g.

Sub InsertFileNameAndPath()
Dim fFname As String
With ActiveDocument
If Len(.Path) = 0 Then
.Save
End If
fFname = .FullName
End With
Selection.TypeText fFname
End Sub

OR

Sub InsertFilenameOnly()
Dim fFname As String
With ActiveDocument
If Len(.Path) = 0 Then
.Save
End If
fFname = .name
End With
Selection.TypeText fFname
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



Pauline Longmuir wrote:
I would like to email files with the Filename field but they show the
temp file info instead of the saved file info. Is there a switch
that can be used to ensure it shows the original file's info?



 
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
~$filename showing in files ejpolden Microsoft Word Help 3 November 15th 07 12:54 AM
Word 2000-why are temp files showing when I try to open new file? Shannon Microsoft Word Help 1 December 26th 06 11:28 PM
Erasing an extra printer page with info like filename etc. Brightness woes! Microsoft Word Help 1 November 28th 06 02:20 PM
Temp files still showing in server folder?? Ed Microsoft Word Help 2 June 7th 06 02:41 PM
How can I remove the .doc file extension in a FILENAME field? Mike Petrusko Microsoft Word Help 2 March 18th 06 06:24 AM


All times are GMT +1. The time now is 05:40 AM.

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

About Us

"It's about Microsoft Word"