![]() |
|
|
Thread Tools | Display Modes |
#2
|
||||
|
||||
![]()
You could use a formula for your mergefield, coded along the lines of:
{=MOD(INT({MERGEFIELD MyField}/10),100) \# 00} or: {=MOD(INT(«MyField»/10),100) \# 00} where 'MyField' is your field name. 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); 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, you can't type or copy & paste the chevrons (i.e. '« »') - they're part of the actual mergefields, which you can insert from the 'Insert Merge Field' dropdown.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
cyclops755 | Word VBA | 9 | 01-17-2023 02:42 PM |
![]() |
paul h | Mail Merge | 2 | 09-09-2015 07:18 AM |
Macro to select an { includepicture } field code and format the picture behind text and 100% scale | sanpedro | Word VBA | 3 | 03-30-2015 10:50 PM |
![]() |
borntorun75 | Mail Merge | 3 | 12-16-2011 06:28 AM |
![]() |
steven.allman | Mail Merge | 5 | 04-11-2011 02:24 PM |