V
vvskpk
Hi
I'm using powerpoint 2003.
I have created a macro with button which fills color to the objects. Now I
would like to add a feature to it. That is, if I select the table and click
the same macro, it should fill that color only to the table header and the
same color should apply to the table only to the middle horizontal lines
between rows with 0.75 (3/4) thickness. Here is my script to fill color for
shape and I tried to add the table feature. But the macro is angry with me.
Don't know how to add the feature to fill table header and middle lines. Same
macro if I use it for shape it should fill the object. If I use it for table
it should work only for the table properties. If not possible, please suggest
a new method.
I'm hoping the experts inside here can help!! Many thanks in advance...
Sub F114199231()
With ActiveWindow.Selection.ShapeRange
.Fill.Visible = msoTrue
.Fill.ForeColor.RGB = RGB(114, 199, 231)
.Fill.Solid
ActivePresentation.ExtraColors.Add RGB(Red:=114, Green:=199, Blue:=231)
ActiveWindow.Selection.ShapeRange.Line.Visible = msoFalse
End With
Dim otbl As Table
Set otbl = ActiveWindow.Selection.ShapeRange.Table
With otbl.Rows(1)
..Fill.Visible = msoTrue
Fill.ForeColor.RGB = RGB(114, 199, 231)
.Fill.Solid
ActivePresentation.ExtraColors.Add RGB(Red:=114, Green:=199, Blue:=231)
End With
End Sub
vvskpk
I'm using powerpoint 2003.
I have created a macro with button which fills color to the objects. Now I
would like to add a feature to it. That is, if I select the table and click
the same macro, it should fill that color only to the table header and the
same color should apply to the table only to the middle horizontal lines
between rows with 0.75 (3/4) thickness. Here is my script to fill color for
shape and I tried to add the table feature. But the macro is angry with me.
Don't know how to add the feature to fill table header and middle lines. Same
macro if I use it for shape it should fill the object. If I use it for table
it should work only for the table properties. If not possible, please suggest
a new method.
I'm hoping the experts inside here can help!! Many thanks in advance...
Sub F114199231()
With ActiveWindow.Selection.ShapeRange
.Fill.Visible = msoTrue
.Fill.ForeColor.RGB = RGB(114, 199, 231)
.Fill.Solid
ActivePresentation.ExtraColors.Add RGB(Red:=114, Green:=199, Blue:=231)
ActiveWindow.Selection.ShapeRange.Line.Visible = msoFalse
End With
Dim otbl As Table
Set otbl = ActiveWindow.Selection.ShapeRange.Table
With otbl.Rows(1)
..Fill.Visible = msoTrue
Fill.ForeColor.RGB = RGB(114, 199, 231)
.Fill.Solid
ActivePresentation.ExtraColors.Add RGB(Red:=114, Green:=199, Blue:=231)
End With
End Sub
vvskpk