View Single Post
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Wendy V
 
Posts: n/a
Default Insert part of Filename in Header

Is it possible to insert only part of a file name into the header? I have a
document named "HSE-I.1-001-P HS&E Manual.doc" and I would like to insert a
field that would display "HSE-I.1-001-P". I know I could accomplish this
using VBA but don't want the user to have to "enable macros" when they open
the document. If I could insert this function:
mid(FILENAME,1,instr(FILENAME," ")) into the header it would accomplish what
I want to do.

If anyone could offer any suggestions, I would really appreciate it.

Thanks,
Wendy