View Single Post
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
zSplash
 
Posts: n/a
Default Using VBA code w/i Field

Is there any way to use VBA code in a Fillin-field or If-field? That is,
say I want to test the left 3 characters of a string, and based on that, do
something?

Example: If-field:
If dbValue="12345" doA doB

What I want to do:
If Left(dbValue,3)="123" doA doB

TIA