Msadiqrajani
Board Regular
- Joined
- Jan 17, 2009
- Messages
- 107
Hi,
I am trying to develop a macro format all shapes in worksheet a specific format, but nothing happens when I try to run this macro.....No error too.
Also no macro recording supported
Please tell me if theres something wrong in code.
Thanks
I am trying to develop a macro format all shapes in worksheet a specific format, but nothing happens when I try to run this macro.....No error too.
Also no macro recording supported
Code:
Sub doit()
Dim sh As Shape
Set sh = ActiveSheet.Shapes(1)
With sh.Line
.Visible = msoCTrue
.ForeColor.RGB = RGB(25, 25, 25)
.Weight = 8
End With
With sh.Fill
.ForeColor.RGB = RGB(125, 125, 80)
End With
End Sub
Please tell me if theres something wrong in code.
Thanks