Quantcast
Viewing all articles
Browse latest Browse all 15735

Trouble updating field value with VBA

I have created a .docm file that contains a docvariable field called "previousBL". However, in my VBA code, when I try to run ActiveDocument.FormFields("previousBL").Select, I get an error that says "The requested member of the collection does not exist." I have tried using ActiveDocument.Fields, but then I get a "Type mismatch" error. I am calling this function from a DXL script, but even if I try to run it on my own, I get the same issue. I'm hoping that someone can help me out as this function is adding the contents of an HTML file to the end of a pre-configured .docm file then trying to edit this field.


Chris

Viewing all articles
Browse latest Browse all 15735

Trending Articles