Click to See Complete Forum and Search --> : Detecting macros in MS Office docs using VC++.


Richard Green
April 14th, 1999, 12:19 PM
Hi,

I've written a data-scanner and am now trying to detect the presence of macros within Office documents using VC++, but cannot find any relevant documentation. I've made several exhaustive searches of the MSDN and it seems this isn't an easy task. The nearest I've got to an answer was with:

"Read Compound Document Properties Directly with VC++"

But this only gave basic details, (Author, wordcount etc.), that are stored in the doc itself, whereas I believe macros to be stored in the template?

Maybe I'm looking in the wrong area? Is there an ideal method to use for macro detection? COM? VBA? Neither of which I've ever used! Ideally, I'd like to enumerate the macros as well as simply detect if they exist within a document.

Thanks for listening!
Richard