J,
I think if you read Graham's web page carefully you will see that the UserDefined processes have to be a Function that takes a document object (e.g., oDoc) as an argument and return a Boolean value.
His add-in, like mine, does the part of looping through folders and sub-folders looking for documents. When a document is found, it is opened and then passed as an argument to the UserDefined function. The function does the work on the document and reports back success or failure. On success the document is saved and closed. On failure it is simply closed.
I'm not sure what all your macros do, but you certainly wouldn't paste any code that opens, saves or closes the document.
Try replacing my ... With oDoc.Font ... End With code with your code (less any open, save or close steps) and see what happens.
|