Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Matlab ActiveX command for PowerPoint Multiline Title
Replies: 9   Last Post: Dec 21, 2010 9:52 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
orion216

Posts: 11
From: Netherlands
Registered: 9/24/07
Re: Matlab ActiveX command for PowerPoint Text Box Color
Posted: Mar 13, 2010 5:19 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi.

How can I set the background color of the whole presentation to certain solid color like RGB(200,100,100). This may help, I think:
ActivePresentation.SlideMaster.Background.Fill.PresetGradient _
Style:=msoGradientHorizontal, Variant:=1, _
PresetGradientType:=msoGradientLateSunset

Also, can you help me explain how to write VBA commands in Matlab.
For eg, the following code from Developer help:
With ActivePresentation.Slides(1)
.FollowMasterBackground = False
.Background.Fill.PresetGradient Style:=msoGradientHorizontal, _
Variant:=1, PresetGradientType:=msoGradientLateSunset
End With

Given op = invoke(ppt.Presentations,'Open',filespec,[],[],0).
How can I write the corresponding commands for these VBA code in Matlab?
I have tried:

invoke(op.Slides,'FollowMasterBackground',0);
invoke(op.Slides.Background.Fill,'PresetGradient', 'msoGradientHorizontal',1,'msoGradientLateSunset');
but it is not working.
From my observation of others' codes, it seems that the command will have the form of
invoke(method prefix,'method name','method args') as in invoke(op.Slides,'FollowMasterBackground',0);
Is it correct?
Another question: when should we use set/get/invoke? I am a little confused on this.
Thank you in advance!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.