Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matlab ActiveX command for PowerPoint Text Box Color
Date: Fri, 27 Jul 2007 00:55:45 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 23
Message-ID: <f8bfqh$ntj$1@fred.mathworks.com>
References: <f7lole$dhk$1@fred.mathworks.com> <f7mu4s$es5$1@fred.mathworks.com> <f88mi2$emd$1@fred.mathworks.com> <f899l5$rtt$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-00-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1185497745 24499 172.30.248.35 (27 Jul 2007 00:55:45 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 27 Jul 2007 00:55:45 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1062390
Xref: news.mathworks.com comp.soft-sys.matlab:421310



Thanks again.
I have another one for you or anybody else out there that might be able to answer.  I can not get the correct font color for my text box in PowerPoint using ActiveX.

    text_box=invoke(new_slide.Shapes,'AddTextbox','msoTextOrientationHorizontal', 259.25, 20.75, 200, 20);
    text_box.TextFrame.TextRange.Text='Hello';
    text_box.TextFrame.TextRange.Font.Size=8;
    text_box.TextFrame.TextRange.ParagraphFormat.Alignment = 'ppAlignCenter';
    text_box.TextFrame.TextRange.Font.Bold = 'msoFalse';
    text_box.TextFrame.TextRange.Font.Color.RGB='255,255,0;

When I examine the color attributes in PowerPoint it says the text RGB color is 230,242,38.

I also tried...

text_box.TextFrame.TextRange.Font.Color.RGB='(255,255,0)';

and this gave me a text RGB color of 26,13,217.

Obviously I'm doing something wrong, but I don't know what.

Any help would be greatly appreciated.
Thanks,
Calves