#1
|
|||
|
|||
Can you help me to understand \* MERGEFORMAT?
HELLO TO EVERYBODY!!! (^____^)
this is my first message and I need your help for one questions: =) I'm not very expert of MS Word, but I'm writing a small book and I'm using a cross-reference ( I don't know how to call this tool) for picture, paragraph and chapters. I have also a index at the beginning of the book. PROBLEM #1 Today, I discovered that a lot of my "cross-references" (for example, Fig. 5.45) if I show the "Code", looks like this: [REF_Ref504939385_ \h \* MERGEFORMAT] The "funny things is that, some backup ago, the same field was simple: pREF_Ref504939385_ \h] And, if I create a new cross-referencefor the same picture, the "code" has no " MERGEFORMAT" text... So, why does Word add this code? For what? How? I tried to search in Internet, but without luck :/ Can you explain me? thank you! ^__^ |
#2
|
||||
|
||||
In theory the \*MERGEFORMAT switch is supposed to retain the format of the item being referenced and Microsoft in their wisdom insert it by default when you insert a field, though you can choose not to by unchecking the option 'Preserve formatting during updates'.
In practice it is probably best avoided. You can remove the switch from your document by displaying the field structure (ALT+F9) and use the Replace function, or see Change Word Field Formatting Switch
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
|||
|
|||
Hello gmayor,
thank you, thank you very much for you answer. I want to tell you another thing. When I write my book, I create progressive, manually .docx backup (Word 2010). So, I saw im my backup folder, some months ago I had these backup files: 49_Backup.docx (19:17 - 29/12/2018) 50_Backup.docx (03:24 - 27/01/2019) 52_Backup.docx (16:14 - 28/01/2019) [...] They are simple backups ( I don't remember exactly what I did... ) In the 49_Backup.docx , no one cross-reference has \*MERGEFORMAT switch In the 50_Backup.docx , a lot, the same cross-references has \*MERGEFORMAT switch. Almost every cross-references in my book. But... I didn't do nothing! Do you know why??? How can be possible that Word add this switch? EDIT 01: and, what do you mean when you write: "to retain the format of the item being referenced " I'm sorry, but I didn't understand well.. =( Thank you =) |
#4
|
||||
|
||||
I don't know why Word has added an unrequested mergeformat switch. Inserting a cross reference (or REF field) here does not add the switch.
It is supposed to (in the case of the REF field) insert the cross reference with the same format as the item referenced. Frankly I am not convinced the switch does anything useful as the results are apparently the same with or without it. If you want the reference to be formatted as the surrounding text, use a CHARFORMAT switch.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#5
|
|||
|
|||
Honestly, me too... I don't understand why...
So, from what I understand, this "switch" doesn't do nothing bad. And... I can live with it =) YOu wrote "It is supposed to (in the case of the REF field) insert the cross reference with the same format as the item referenced". So, as "format" you mean the "style, the font size, color etc..."? Sorry.. but I'm a bit newbie... =) |
#6
|
||||
|
||||
Quote:
Quote:
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#7
|
|||
|
|||
Hi gmayor,
thank you for your support =) I will leave these switches as they are right now. We will see in the future ;-) thank you from Italy |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
#REF! Error that I cannot seem to understand | krispykreme | Excel Programming | 5 | 09-11-2016 11:25 PM |
Word adds additional stupid \* MERGEFORMAT | NobodysPerfect | Word | 8 | 10-13-2014 01:52 PM |
I get this {shape \*mergeformat} when I select org chart from the Drawing toolbar. | blockie | Word | 1 | 09-02-2014 02:15 PM |
Trying to understand formulas and error | Jack-P-Winner | Excel | 1 | 04-22-2014 03:50 PM |
{ REF bmSubject \* MERGEFORMAT} In footer | shodg001 | Word | 2 | 04-17-2013 11:49 PM |