Hi macropod,
Sorry to be a burden but I can't easily see how the use of two sets of IF tests can be used to resolve my issue.
In the sample code you gave above you are testing for positions 1,2,3 and 4 could you show me the same tests but using two IF tests spliting the first IF for conditions...
Although both the previous posts are useful unfortunately they will not allow me to resolve this particular issue. The problem I have is that the comma can appear in any of the first 30 character positions
Is there no way of setting the value of a datasource field to reset the value if a comma...
Hi
Is it possible to add a condition to a word document so that you dont display a word mail merge datafield if it has a certain string contained in the datafield for example a comma?
strValue = ActiveDocument.MailMerge.DataSource.DataFields("CUSTOMER")
if instr(strValue,",") > 0 then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.