> What Bill said.
>
[quoted text clipped - 31 lines]
> PPTools: www.pptools.com
> ================================================
When you wrote: "How can I get an Add-in to execute code in the Auto_Open macro only
for specific PPT files that I load?" I think I misinterpreted what you're after.
This in your addin would fire off Sub Auto_ShowBegin in your presentation:
Application.Run "FileName.PPT!Auto_ShowBegin"
Or more likely, something like:
Application.Run ActivePresentation.Name & "!Auto_ShowBegin"
You'd want that to be thoroughly error trapped, of course.
> I read through the FAQ again, but, unless I'm misunderstanding something, it
> still doesn't tell me how to do what I'm trying to do. There are several
[quoted text clipped - 45 lines]
> > PPTools: www.pptools.com
> > ================================================
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
SixSigmaGuy - 08 Feb 2007 18:21 GMT
Yes! Thank you!
The Run method is exactly what I'm looking for. That's pretty cool; it's
like late binding. I can think of a lot of things I can do with that method.
:-)
Rather than using "ActivePresentation" I'll probably trap the Pres object
from one of the standard events and use that.
Thanks!
> When you wrote: "How can I get an Add-in to execute code in the Auto_Open macro only
> for specific PPT files that I load?" I think I misinterpreted what you're after.
[quoted text clipped - 64 lines]
> PPTools: www.pptools.com
> ================================================
Steve Rindsberg - 09 Feb 2007 04:58 GMT
> Yes! Thank you!
>
[quoted text clipped - 4 lines]
> Rather than using "ActivePresentation" I'll probably trap the Pres object
> from one of the standard events and use that.
That might be a better idea. Or in the case of events that pass shapes, the shape's
Parent.Parent property would give you a ref to the presentation.
> Thanks!
>
[quoted text clipped - 67 lines]
> > PPTools: www.pptools.com
> > ================================================
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Holly Crofts - 05 Apr 2007 15:38 GMT
I still don't get this. Where in the Add-In do I put the code:
Application.Run ActivePresentation.Name & "!Auto_ShowBegin"
If I put it in the Auto_Open sub in the Add-In it doesn't run correctly as
there is not yet an active presentation.
> When you wrote: "How can I get an Add-in to execute code in the Auto_Open macro only
> for specific PPT files that I load?" I think I misinterpreted what you're after.
[quoted text clipped - 64 lines]
> PPTools: www.pptools.com
> ================================================
Steve Rindsberg - 06 Apr 2007 02:35 GMT
> I still don't get this. Where in the Add-In do I put the code:
>
> Application.Run ActivePresentation.Name & "!Auto_ShowBegin"
>
> If I put it in the Auto_Open sub in the Add-In it doesn't run correctly as
> there is not yet an active presentation.
Right. You'd want the Auto_Open sub to set up event handling.
You'd have the event handling routine respond to the SlideShowBegin event and run
whatever code you need then.
> > When you wrote: "How can I get an Add-in to execute code in the Auto_Open macro only
> > for specific PPT files that I load?" I think I misinterpreted what you're after.
[quoted text clipped - 64 lines]
> > PPTools: www.pptools.com
> > ================================================
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================