#1   Report Post  
Steve Wylie
 
Posts: n/a
Default Field length

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
  #2   Report Post  
macropod
 
Posts: n/a
Default

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


"Steve Wylie" wrote in message
om...
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



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Expanding length of a field in a Microsoft Word form DIrish Microsoft Word Help 1 January 25th 05 06:22 PM
How do I use the PRINT field code to ... Dave Microsoft Word Help 3 December 13th 04 03:06 PM
How do I set field length in template/form regardless of data siz. shdrjw Microsoft Word Help 2 December 7th 04 08:04 PM
Text Form Field Ref in Footer Won't Update on Screen StarWine Microsoft Word Help 3 December 6th 04 06:17 PM
fix field length in a cel Tables 2 November 24th 04 12:27 PM


All times are GMT +1. The time now is 05:12 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"