Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / December 2004

Tip: Looking for answers? Try searching our database.

Field length

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Wylie - 14 Dec 2004 11:42 GMT
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
macropod - 15 Dec 2004 10:10 GMT
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

> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.