PowerPoint XP VBA Programming the Gradient bug?

R

Rafi

PowerPoint version now in use: XP SP2

Version the file was created in or opened in since, if any: any file

Windows version: XP

Other hardware involved (printer, etc):

Description of problem:
I am trying to record a macro that includes setting the "Fill Effects" of a
shape (like a rectangle).
I select an object, then "Format" / "Object", and then the tab "Color and
Lines".
Then I select "Color Fill Effects", and in the "Gradient" tab I select "Two
colors".
At this point, I can set the transparency of "From" and "To" (using the
dialog controls)

However, when I look at the recoded macro, there is only one command to set
the Transparency of the "From": that looks something like that:

ActiveWindow.Selection.ShapeRange.Fill.Transparency = 0.2

There is no command that is equivalent of setting the "To" transparency
number.

In addition, no where in the Document Object Model of PowerPoint could I
find any reference to a second Transparency attribute.

Is it an omission from the Object Model and the API?

Thanks,
Rafi Epstein
 
S

Steve Rindsberg, PPTMVP

Shyam Pillai said:
Rafi,
This was discussed some months ago and it appears to have been left out of
the object model.

Ok. <tap, tap, tap> Where's Keith to show us we're wrong?

Nice one on that grouping trick, Keith. What've you got for us today?
;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top