Microsoft Office Forums Can you help me to understand \* MERGEFORMAT?

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2019, 07:10 PM
scarpinoc scarpinoc is offline Can you help me to understand \* MERGEFORMAT? Windows 7 64bit Can you help me to understand \* MERGEFORMAT? Office 2010
Novice
Can you help me to understand \* MERGEFORMAT?
 
Join Date: Aug 2019
Posts: 4
scarpinoc is on a distinguished road
Default 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! ^__^



Reply With Quote
  #2  
Old 08-17-2019, 08:17 PM
gmayor's Avatar
gmayor gmayor is offline Can you help me to understand \* MERGEFORMAT? Windows 10 Can you help me to understand \* MERGEFORMAT? Office 2016
Expert
 
Join Date: Aug 2014
Posts: 2,900
gmayor is just really nicegmayor is just really nicegmayor is just really nicegmayor is just really nice
Default

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
Reply With Quote
  #3  
Old 08-17-2019, 08:27 PM
scarpinoc scarpinoc is offline Can you help me to understand \* MERGEFORMAT? Windows 7 64bit Can you help me to understand \* MERGEFORMAT? Office 2010
Novice
Can you help me to understand \* MERGEFORMAT?
 
Join Date: Aug 2019
Posts: 4
scarpinoc is on a distinguished road
Default

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 =)
Reply With Quote
  #4  
Old 08-17-2019, 10:33 PM
gmayor's Avatar
gmayor gmayor is offline Can you help me to understand \* MERGEFORMAT? Windows 10 Can you help me to understand \* MERGEFORMAT? Office 2016
Expert
 
Join Date: Aug 2014
Posts: 2,900
gmayor is just really nicegmayor is just really nicegmayor is just really nicegmayor is just really nice
Default

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
Reply With Quote
  #5  
Old 08-18-2019, 04:25 AM
scarpinoc scarpinoc is offline Can you help me to understand \* MERGEFORMAT? Windows 7 64bit Can you help me to understand \* MERGEFORMAT? Office 2010
Novice
Can you help me to understand \* MERGEFORMAT?
 
Join Date: Aug 2019
Posts: 4
scarpinoc is on a distinguished road
Default

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... =)
Reply With Quote
  #6  
Old 08-18-2019, 05:21 AM
gmayor's Avatar
gmayor gmayor is offline Can you help me to understand \* MERGEFORMAT? Windows 10 Can you help me to understand \* MERGEFORMAT? Office 2016
Expert
 
Join Date: Aug 2014
Posts: 2,900
gmayor is just really nicegmayor is just really nicegmayor is just really nicegmayor is just really nice
Default

Quote:
So, from what I understand, this "switch" doesn't do nothing bad.
And... I can live with it =)
It shouldn't have any adverse effect on your document and you could ignore it.
Quote:
So, as "format" you mean the "style, the font size, color etc..."?
Yes.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #7  
Old 08-18-2019, 06:02 AM
scarpinoc scarpinoc is offline Can you help me to understand \* MERGEFORMAT? Windows 7 64bit Can you help me to understand \* MERGEFORMAT? Office 2010
Novice
Can you help me to understand \* MERGEFORMAT?
 
Join Date: Aug 2019
Posts: 4
scarpinoc is on a distinguished road
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you help me to understand \* MERGEFORMAT? #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
Can you help me to understand \* MERGEFORMAT? I get this {shape \*mergeformat} when I select org chart from the Drawing toolbar. blockie Word 1 09-02-2014 02:15 PM
Can you help me to understand \* MERGEFORMAT? Trying to understand formulas and error Jack-P-Winner Excel 1 04-22-2014 03:50 PM
Can you help me to understand \* MERGEFORMAT? { REF bmSubject \* MERGEFORMAT} In footer shodg001 Word 2 04-17-2013 11:49 PM


All times are GMT -7. The time now is 08:04 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft