M
MaSch
Hello all!
I'm using PowerPoint 2002 and want to create a rectangle with a two color
gradient fill in VBA. The problem now is, that the gradient should have
different transparencies associated with the two colors.
My code is the following:
....
With mydocument.Shapes.AddShape(Type:=msoShapeRectangle, _
Top:=FBTop, Left:=FBLeft, Width:=FBWidth,
Height:=FBHeight)
.Name = "SomeName"
.Fill.ForeColor.RGB = FBForeColor
.Fill.BackColor.RGB = FBBackColor
.Fill.TwoColorGradient Style:=msoGradientHorizontal, Variant:=4
.Fill.Transparency = 0.5
.Line.DashStyle = msoLineSolid
.Line.Visible = msoFalse
....
But this code just changes the transparency of the foreground color to 50%.
Does anybody know, how to change the transparency of the second (the
background color) of the gradient?
I couldn't find a property for that... :-(
I'm using PowerPoint 2002 and want to create a rectangle with a two color
gradient fill in VBA. The problem now is, that the gradient should have
different transparencies associated with the two colors.
My code is the following:
....
With mydocument.Shapes.AddShape(Type:=msoShapeRectangle, _
Top:=FBTop, Left:=FBLeft, Width:=FBWidth,
Height:=FBHeight)
.Name = "SomeName"
.Fill.ForeColor.RGB = FBForeColor
.Fill.BackColor.RGB = FBBackColor
.Fill.TwoColorGradient Style:=msoGradientHorizontal, Variant:=4
.Fill.Transparency = 0.5
.Line.DashStyle = msoLineSolid
.Line.Visible = msoFalse
....
But this code just changes the transparency of the foreground color to 50%.
Does anybody know, how to change the transparency of the second (the
background color) of the gradient?
I couldn't find a property for that... :-(