How to detect embedded EXEs and vba macros?

  • Thread starter Thread starter Team
  • Start date Start date
T

Team

Programmatically how can I detect through PowerPoint automation, if any
macros or EXEs are present in a presentation?

Thanks,
Libeesh.
 
What is the purpose behind it? You can open any presentation with macros
disabled by force. If you want to detect it after openning it then look up
visual basic extensibility library.


--
Regards,
Shyam Pillai

Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
 
In PPT 2003 or earlier, ensure that your macro security is set to "medium"
(go "Tools - Macro - Security" - "Medium"). This will trigger a confirmation
notice whenever something is opened with a VAB code in there and you can
decide whether to run it or not (and detect whether anything is in there at
all).

Not quite sure how you could embed exe's into PPT or (if possible) detect
them - sorry.

I would think that in 2007 VBA codes can only be activated if the document
is saved as a pptm or potm (macro-enabled)? So you should see it by the file
ending (although this is just a guess - there may still be macros in there
but they're not enabled by default).
 
We are writing a small utility to remove macros from PPT presentations.
i.e the input of the program will be a folder containing many PPT
presentations.
Then program will enumerate these PPT files and it has to remove if any PPT
file contain macros. How can we achieve this. Does PowerPoint object model
support removing macros contained in a presentation?

Thanks,
Libeesh
 
Look up the visual basic extensibility library. That should help you in
removing code modules and userforms.

--
Regards,
Shyam Pillai

Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
 
Back
Top