Field length

S

Steve Wylie

Is there a way I can use an IF statement to tell the length of a
particular merge field? I'm thinking of something like
LEN(mergefield). Does such a thing exist in Word? I can't even think
that a macro would help me...

Steve Wylie
 
M

macropod

Hi Steve,

Not with text strings. You could use math on numeric values, though, by
testing the value against powers of 10 to calculate the number of
(non-decimal) digits. This could be extended to testing decimals also, but
that's a bit more work.

Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top