View Single Post
 
Old 12-28-2012, 06:14 PM
tinfanide tinfanide is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default

Quote:
Originally Posted by Cosmo View Post
You can never use only part of a reference - how would it know which slide/presentation/etc you mean?

The reason it works within the animations subroutine is because it is enclosed within your 'With' statement. This is basically shorthand which relieves you from having to type the entire reference each time (and I think it may be slightly faster, as it has already referenced the parent object, but I am not 100% sure about this), but you are still referencing the entire object.

You should be able to do the same in your test routine:

Code:
With ActivePresentation.Slides(vIndex)
Call animations(3, .Shapes.Title, msoAnimEffectAppear, msoAnimateTextByAllLevels, msoAnimTriggerOnPageClick, -1, 5, 1, ppAfterEffectHideOnClick)
end with
Yes, that's the exact reason. Still referring to the parent object either way.
Reply With Quote