A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

VB.NET Powerpoint Animation



 
 
Thread Tools Display Modes
  #1  
Old April 28th, 2010, 09:13 PM posted to microsoft.public.powerpoint
Naro25
external usenet poster
 
Posts: 7
Default VB.NET Powerpoint Animation

Hi,

Could someone please help me in applying an animation to an object in
powerpoint through VB.NET. I'm only a beginner and have tried my best to
figure it out with something like the following code which is two objects
using one as the trigger.
I managed to get it working in pptVBA but just can't get it to work in .NET.
I keep getting an error COMException was unhandled.
I cant seem to find any example of this on the internet to work with either.

Any help with this would be extremely appreciated!!!

Many thanks
FustratedNaro25

Imports PowerPoint = Microsoft.Office.Interop.PowerPoint
Dim intereffect as powerpoint.effect
Dim oShape/sPic as powerpoint.shape

With oApp.ActivePresentation.Slides(1).TimeLine.Interac tiveSequences.Add(1)
interEffect = .AddEffect(oShape,
PowerPoint.MsoAnimEffect.msoAnimEffectFly,
PowerPoint.MsoAnimTriggerType.msoAnimTriggerOnShap eClick)
interEffect.Shape = sPic

With interEffect
.EffectParameters.Direction =
PowerPoint.MsoAnimDirection.msoAnimDirectionLeft
.Timing.Duration = 0.5
End With
End With

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.