Log in

View Full Version : vba codes needed for ppt



banane78
01-03-2013, 04:28 PM
Hi at all,

I hope u guys can help me with some codes for ppt.

1) How can I automatically enable macros in a ppt presentation when performing the macro (button click). I thought about including it in the vba code or writing it as a general code saying when opening ppt enable macro without this asking all time.

2) How can I disable the save question when exiting the ppt? - don't want the user to save the ppt just by using save as dialog.

3) What and how is the best way to secure the vba code - and certain slides?

Thank you very much for your support.

John Wilson
01-04-2013, 01:11 AM
You can set macro security to the lowest setting or create a self certificate. You can ONLy do this on your own PC. The cert will not work on others PCs and there is no way to reduce macro security in code. Both of these would be serious security risks.

To disable the save question you would need to set the saved property to true for the active presentation.

vba code can be passworded using Tools (in the vbe) > Project Properties > Protection