Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #18  
Old 02-25-2018, 02:22 PM
macropod's Avatar
macropod macropod is offline IF Statement in Word Windows 7 64bit IF Statement in Word Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by nbuckwheat View Post
I actually got it to work, what I did was use the ctrl9 to get my double brackets. I then typed IF and without spacing after IF, I inserted the merge field and completed my formula, then I would highlight the formula and then toggle to get the MERGEFIELD to appear. I still was receiving both names instead of replacing, so I did more research and followed this tip: I highlighted the inserted merged field as well as the name I did not want. I then book marked them, and went to format/font/hidden . . . worked perfectly. Names are still in the background but are not visible.
That is NOT how to do it. If your output was showing both the original output and the modified output, all that means is that you've left the original mergefield in the document alongside the one in the IF field. You should have replaced it with the field code as per the coding Graham and I posted.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
IF Statement in Word IF statement in Word VBA BristolJGM Word VBA 2 09-16-2017 06:02 AM
and if statement in word mailmerge sbye Mail Merge 17 08-25-2017 09:59 PM
VBA Word - Find & Apply Styles to Specific Words - Using Case Statement jc491 Word VBA 17 12-26-2015 12:25 PM
IF Statement in Word Microsoft Word IF statement issues micro44 Word 4 10-23-2014 12:10 PM
Help with IF statement in word 2010 Mad Word 2 04-06-2013 06:31 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:39 PM.


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