Auto_close() Problem

T

technoknight

I m into PowerPoint Automation.

I am facing a very weird problem. I have created an Addin file with some
function that I need. I have also written the function Auto_open () &
Auto_close() in the addin module so that I can execute some code that I want
to be executed when the PowerPoint App starts & close, respectively
(PowerPoint app start & close invoke Addin load & unload, respectively). Now
when I close the PowerPoint the function Auto_close() is not being called.
But, If I create a new addin with just Auto_close() in the module (and none
of my own functions that are present in the original module) then PowerPoint
calls Auto_close() from this new addin.

Can someone throw some light on to why PowerPoint calls the Auto_close()
when it is the only function in the module and not when there are other
functions in the addin?

(Note: I am creating the .ppa file and add it to my PowerPoint addins.)

Thanks in advance.
 
T

technoknight

Yes it is private. Here is my Auto_close():

Sub Auto_close()
MsgBox "Executing autoclose"
Shell "D:\abc.exe"
End Sub

Since, I am not declaring it as "Public Sub Auto_close()", it must be
Private. But, I have tried making it Public, but still I am facing the same
problem.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top