Windows 7 Forums


Windows 7: MS Word. Extracting text from a field

11 May 2012   #1

Windows 7 32 bit
 
 
MS Word. Extracting text from a field

Hi guys

Is it possible to extract and display part of a field?

If I insert "{FILENAME \* Upper\* MERGEFORMAT}" into the document footer it returns the entire filename - ie "DOC2072XB" in this instance.



The way the filename is constructed is "DOC2072" is the document reference and "XB" is it's revision. I'd like to be able to display these two items separately.

I tried
"{=left(FILENAME,7) \* Upper\* MERGEFORMAT}" and
"{=right(FILENAME,2) \* Upper\* MERGEFORMAT}"
as a wild guess but it doesn't work!

If I've explained what I want to do properly, and it makes sense, does anyone know if what I want to do it possible? If so, how?

Cheers,
Gary
My System SpecsSystem Spec

Reply

 MS Word. Extracting text from a field problems?



Thread Tools



Similar help and support threads for: MS Word. Extracting text from a field
Thread Forum
Office 2007 Word printing deleted text over new text Microsoft Office
Solved Word 2010 - Text Box Microsoft Office
Solved How to set default text wrapping in word Microsoft Office
Forms/Word 2007/Display entire field length Microsoft Office
how to add comments in to word text Microsoft Office


All times are GMT -5. The time now is 04:10 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32