The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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


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, _

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.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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.