In that case, you could use a series of fields coded as:
{=MOD(INT({MERGEFIELD Micr_Number}/1000),10) \# 0}
{=MOD(INT({MERGEFIELD Micr_Number}/100),10) \# 0}
{=MOD(INT({MERGEFIELD Micr_Number}/10),10) \# 0}
{=MOD({MERGEFIELD Micr_Number},10) \# 0}
etc., or:
{=MOD(INT(«Micr_Number»/1000),10) \# 0}
{=MOD(INT(«Micr_Number»/100),10) \# 0}
{=MOD(INT(«Micr_Number»/10),10) \# 0}
{=MOD(«Micr_Number»,10) \# 0}
etc. to separate out the individual digits.
Note: The field brace pairs (i.e. '{ }') for the above example are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac or, if you’re using a laptop, you might need to use Ctrl-Fn-F9); you can't simply type them or copy & paste them from this message. Nor is it practical to add them via any of the standard Word dialogues. Likewise, the chevrons (i.e. '« »') are part of the actual mergefields - which you can insert from the 'Insert Merge Field' dropdown (i.e. you can't type or copy & paste them from this message, either). The spaces represented in the field constructions are all required.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|