Results 1 to 2 of 2
  1. #1
    Lounger
    Join Date
    Nov 2002
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts
    When inserting the file name in a Word 2007 document, is there a way to not display the file extension? And, if you do have to show the extension, how do you format the font size? Right now, I get the doc name in a small font, but the extension in a bigger point size.

  2. #2
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,054
    Thanks
    2
    Thanked 417 Times in 346 Posts
    [quote name='jmcnamara3' post='773728' date='05-May-2009 07:58']When inserting the file name in a Word 2007 document, is there a way to not display the file extension? And, if you do have to show the extension, how do you format the font size? Right now, I get the doc name in a small font, but the extension in a bigger point size.[/quote]
    Hi jmcnamara3,

    You can't exclude the extension - or output it in a different font from the rest of the field. However, a \* MERGEFORMAT attached to the field will sometimes give odd results if you've, say, formatted the field in a font that's different from the underlying paragraph format and you change the length of the field results (eg by moving the file to a new folder). Perhaps that's what's happening here. If so, either:
    . reinsert the field without the 'preserve formatting during updates' option; or
    . press Shift-F9 to expose the field code and change 'MERGEFORMAT' to 'CHARFORMAT' and format the first character in the field code with the attributes you want for the whole field, then press F9 to update.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •