![]() |
|
#1
|
||||
|
||||
![]()
Unfortunately, whenever you hard-format a cross-reference, Word 'helpfully' adds the MERGEFORMAT switch. The simplest solution is to toggle the field code display 'on' (e.g. via Alt-F9), then use Find/Replace to delete the switches, via:
Find = \* MERGEFORMAT<space> Replace = nothing Do note that, when adding the \* CHARFORMAT switch, you need only format the first character of the field code, in this case the 'R' of the field's 'REF' expression. There is no need to format anything else. Not applying the format to the whole field will avoid the addition of the extraneous \* MERGEFORMAT switch.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
||||
|
||||
![]()
Hi Paul,
Quote:
Quote:
Quote:
Quote:
Seem to be one of those features "resulting from far too many Tia Marias laced with vodka" (http://word.mvps.org/faqs/tblsfldsfms/FastTables.htm). NP |
#3
|
||||
|
||||
![]()
Without seeing your macro, I can't really comment on why it might be doing that.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
![]()
Hi Paul,
Quote:
I stumpled upon this 'feature' it when applying the field solution (https://www.msofficeforums.com/word/...est-empty.html) to my table. When creating tables I often have to change table formatting until it fits my formatting ideas. Whenever I apply character formatting, the \* M switch is added to the { REF } fields. So I changed \* M to \*C, thought everything was fine and continued working. But Word still keeps inserting the \* M switch resulting in: { REF Text1 \* CHARFORMAT \* MERGEFORMAT }. As soon as the \* M switch is inserted, the \* C switch becomes ineffective. In the case of my table (and field formatting) it really does not matter, it is (was) more a sort of basic question. NP Last edited by NobodysPerfect; 10-13-2014 at 07:08 AM. |
#5
|
||||
|
||||
![]()
The problem, then, is that you're overriding the field's formatting when you change the table format. That's what's causing Word to add the \* MERGEFORMAT switch. IOW, it's behaving as intended.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
blockie | Word | 1 | 09-02-2014 02:15 PM |
![]() |
Rekitson | Excel | 2 | 04-19-2013 07:23 AM |
![]() |
shodg001 | Word | 2 | 04-17-2013 11:49 PM |
My list of stupid questions | Niinie | PowerPoint | 1 | 10-05-2010 02:34 PM |
Help - Word adds secret code? Copy to notepad? | andytaylor2006 | Word | 0 | 12-15-2006 11:00 PM |