Prev: real time embedded coder
Next: Function calling
From: Hiep on 13 Mar 2010 05:19 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!
From: Hiep on 13 Mar 2010 05:22 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!
|
Pages: 1 Prev: real time embedded coder Next: Function calling |