wordperfectconvert
Technical User
I am new to VBA. I use a software program that creates documents from a database. However, some times the information for the document does not exist (i.e. "accountnumber"). In those instances, the form is created just fine, but there is a line of text in the RE: for the letter that says "Account Number : [bookmark for info].
What I want to do is create a macro that opens when the template opens (I know how to do that) where the macro searches for the bookmark and then determines if there is any information in the bookmark. If there is information (account number) the macro terminates. If there is no information, I want to go to the bookmark, move to the beginning of the line and delete to the end of the line. (this is a word document).
Can anyone help. I am learning fast, but have been unable to find any help on this issue. Thanks.
Bill
What I want to do is create a macro that opens when the template opens (I know how to do that) where the macro searches for the bookmark and then determines if there is any information in the bookmark. If there is information (account number) the macro terminates. If there is no information, I want to go to the bookmark, move to the beginning of the line and delete to the end of the line. (this is a word document).
Can anyone help. I am learning fast, but have been unable to find any help on this issue. Thanks.
Bill