View Single Post
 
Old 09-11-2015, 07:01 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

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.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote