-
WSarmsys
AskWoody LoungerYou have asked a lot of questions here, and none of them has a simple answer. Especially as you haven’t made clear exactly what you need to do with these Word documents…
Hi StuartR,
Thanks for your thought-provoking feedback. My objective here is learn about the practical Word security practice actually implemented on a daily basis. It must be simple to run. That’s, what would most corporates and attorneys would do when sending out Word documents?
Some of your descriptions appear to be highly speculative/theorectical and, thus, unhelpful.
Thank you for pointing me to a very useful URL http://addbalance.com/usersguide/metadata.htm.
Thanks.Regards,
Armstrong -
WSarmsys
AskWoody LoungerHi Hans,
Though you didn’t mention the document type for your illustration, I suggest it’s of “labels” type.
Most likely, the different {NEXTIF} behaviors are related and caused by the different document types (Letters, Email Messages,…etc.)Armstrong
-
WSarmsys
AskWoody LoungerMarch 12, 2009 at 6:32 am in reply to: Outline Numbering vs. List Styles (2003 for time being) #1151618Stay away from style-based number list. It’s unreliable and unpredictable.
Personally I prefer {SEQ}, which allows me a maximal control. {SEQ} is extremely reliable and robust.
Armstrong -
WSarmsys
AskWoody LoungerHi Hans,
Please reply my last post. In particular, on the one hand, you state, “If the condition is false, the merge continues as if there had been no NEXTIF field.” On the other hand, you state, “If the condition evaluates to false, Word merges the next record into a new letter.”
Please help me understand the confusion. Thanks.Armstrong
-
WSarmsys
AskWoody Lounger{ IF { MERGEFIELD “Phone2” } = “” “Did not provide alternate info” “{MERGEFIELD “Phone2″ }” }
Do you actually need {QUOTE} in this case?
That’s, {QUOTE{ IF { MERGEFIELD “Phone2” } = “” “Did not provide alternate info” “{MERGEFIELD “Phone2″ }”}}Armstrong
-
WSarmsys
AskWoody LoungerHi Hans,
Thanks for your thorough answer.
Armstrong
-
WSarmsys
AskWoody Lounger1. Which version of Word are you using?
2. Have you tried Organizer to to mange macros across templates?Armstrong
-
WSarmsys
AskWoody LoungerHi Hans,
Thanks for adding clarity. I wish you were the author of most Microsoft user manuals.
So for “Letters” document type, {NEXTIF} does insert a form feed. Does it? Now at least we agree {NEXTIF} can “merge the next record into a new letter” if the condition is FALSE. In actuality, how? Does it generate a form feed immediately upon finding the condition FALSE?
Also, in your first reply, you state, “If the condition is false, the merge continues as if there had been no NEXTIF field.”That’s exactly where I was confused. Please help. Thanks.
Armstrong
-
WSarmsys
AskWoody LoungerHans,
Thanks for your feedback. I didn’t take into account a lengthy document. In that case, you’re right, it’s inconvenient to locate the hidden comments even with Find (Ctrl+F).
Armstrong
-
WSarmsys
AskWoody LoungerHi Hans,
Thanks for your extremely perfect answer.
Armstrong
-
WSarmsys
AskWoody LoungerHi Pam,
Would people also use hidden text for commenting? Using regular commenting (Ctrl+Alt+M) or hidden text, which is better?
Armstrong
-
WSarmsys
AskWoody LoungerHi Hans,
Thanks for your fast reply. I did test it myself. Yes, {NEXTIF} actually performs the comparison first.
In my case, for example, {NEXTIF {MergeField CustID} = “XYZ” } performs the comparison on the current record.Referring to Microsoft’s official description http://office.microsoft.com/en-us/word/HP100779671033.aspx:
“The NEXTIF field compares two expressions. If the comparison is true, Microsoft Office Word merges the next data record (data record: A complete set of related information that corresponds to one row of information in the data source. All information about one client in a client mailing list is an example of a data record.) into the current merge document. If the comparison is false, Word merges the next data record into a new merge document.”
It’s slightly different than yours. Specifically, “If the comparison is false, Word merges the next data record into a new merge document.”
That’s how it causes confusion to me.Thanks for your help.
Regards,
Armstrong -
WSarmsys
AskWoody LoungerHi Hans,
Thanks for your absolutely thorough explanation, far more exceeding Microsoft’s.
Nonetheless I’m confused by “the next record is combined with the current one as if they were one record.”
Questions:
1. How could it be technically possible with respect to {MergeField}? Say, the current record pointer is Record 1 and the comparison is TRUE, how would {MergeField} in this scenario?
{IF {MergeRec} = 1 {SET KEY {MergeField CustID}}}/* Before the following {NEXTIF} field, the current Record Pointer is 1 (the first record) */
{NEXTIF {MergeField CustID} = {Key}}{MergeField CustID}2. Here now comes the most challenging question. In {NEXTIF {MergeField CustID} = {Key}}, which record, Record 1 or Record 2, does the comparison {MergeField CustID} = {Key} base on? That’s, does the CustID in the comparison belong to the Record 1 or Record 2? That’s, in the general, does the comparison base on the NEXT record? That’s, when executing {NEXTIF}, does the record pointer already move forward before performing the comparison?
Thanks for your enormous help.
Armstrong
-
WSarmsys
AskWoody LoungerHi Han,
Thanks a lot for adding a lot of clarity. Now it makes a lot of sense. Compared with Macro, field codes lack the readability. Both brackets and quotation marks are hard to trace.
Thanks.
Armstrong -
WSarmsys
AskWoody LoungerHi Macropod,
I have trouble to understand your field codes.
{Quote{If{MergeSeq}=1}{SET Key “”}}”If{MergeField State}{Key} “{If{MERGESEQ}>1 {QUOTE 12}}{MergeField State}{Set Key {MergeField State}}“}{MergeField City}{MergeField Representative}{Mergefield Sales}”}I don’t understanding the meaning of:
{If{MergeSeq}>1 {QUOTE 12}}{MergeField State}{Set Key {MergeField State}}”}
After the first record, would always the MergeSeq be set to greater than 1?{MergeField City}{MergeField Representative}{Mergefield Sales}
Regardless whether MergeSeq is equal to or greater than 1, the City, Representative, and Sales are always printed out? Isn’t it?Thanks for your help in advance.
Armstrong
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Marriage Counseling – Manages To Do It Save Our Marriage? (Awaiting moderation)
by
lynwoodspellman
2 hours, 28 minutes ago -
Where’s the cache today?
by
Up2you2
2 hours, 21 minutes ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
9 hours, 26 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
9 hours, 47 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
3 hours, 2 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
19 hours, 35 minutes ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
19 hours, 41 minutes ago -
regarding april update and may update
by
heybengbeng
21 hours, 11 minutes ago -
MS Passkey
by
pmruzicka
6 minutes ago -
Can’t make Opera my default browser
by
bmeacham
1 day, 4 hours ago -
*Some settings are managed by your organization
by
rlowe44
15 hours, 34 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
1 day, 3 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
1 day, 23 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
2 days, 8 hours ago -
AI slop
by
Susan Bradley
2 hours, 22 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
2 days, 9 hours ago -
Two blank icons
by
CR2
21 hours, 28 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
2 days, 18 hours ago -
End of 10
by
Alex5723
2 days, 21 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 day, 19 hours ago -
test post
by
gtd12345
3 days, 3 hours ago -
Privacy and the Real ID
by
Susan Bradley
2 days, 17 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
19 hours, 47 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
3 days, 7 hours ago -
Upgrading from Win 10
by
WSjcgc50
1 day, 19 hours ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 day, 22 hours ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
3 days, 23 hours ago -
The story of Windows Longhorn
by
Cybertooth
3 days, 11 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
4 days, 1 hour ago -
Are manuals extinct?
by
Susan Bradley
1 day, 1 hour ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.