PowerPoint XP VBA Programming the Gradient bug?

  • Thread starter Thread starter Rafi
  • Start date Start date
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
 
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?
;-)
 
Back
Top