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 / November 2004

Tip: Looking for answers? Try searching our database.

"defined" function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Monika Krug - 16 Nov 2004 14:32 GMT
How is the "defined" function for the formula field
working?

I tried { = defined ( { Mergefield x } ) } .

This does print 1 when x is a valid mail merge field, but
when it is not, it does not print 0, but "syntax error"
instead.

TIA,
Monika.
Peter Jamieson - 16 Nov 2004 15:12 GMT
As far as I know, defined() expects a numeric argument and is really there
to trap divide-by-0 and overflow errors, not "exists" type errors.

I don't think there is a field that will usefully tell you whether a
particular mergefield name is valid or not - you would probably have to use
VBA prior to the merge to do that.

Peter Jamieson
> How is the "defined" function for the formula field
> working?
[quoted text clipped - 7 lines]
> TIA,
> Monika.
Monika Krug - 16 Nov 2004 16:07 GMT
>As far as I know, defined() expects a numeric argument and is really there
>to trap divide-by-0 and overflow errors, not "exists" type errors.
[quoted text clipped - 4 lines]
>
>Peter Jamieson

Thank you for this clarification.

Regards,
Monika.
 
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.