adrian.groves
New Member
- Joined
- Aug 29, 2012
- Messages
- 18
Hi,
I am trying to draw rectangles using a set of variables and I can draw a solid box using:
With plotsheet.Shapes.AddShape(1, Startx, Starty, BoxWidth, BoxHeight).Fill
.ForeColor.RGB = RGB(Red, Blue, Green)
.BackColor.RGB = RGB(Red, Blue, Green)
End With
(The items in italics are variables.)
The problem comes when I try to define a fill style and I have tried:
With plotsheet.Shapes.AddShape(1, Startx, Starty, BoxWidth, BoxHeight).Fill
.ForeColor.RGB = RGB(Red, Blue, Green)
.BackColor.RGB = RGB(Red, Blue, Green)
.Interior.Pattern = xlPatternCrissCross
End With
I am trying to set a transparency and a pattern type of vertical lines. Can anybody offer any assistance to what the ".Interior.Pattern = xlPatternCrissCross" should be replaced with?
Thanks
I am trying to draw rectangles using a set of variables and I can draw a solid box using:
With plotsheet.Shapes.AddShape(1, Startx, Starty, BoxWidth, BoxHeight).Fill
.ForeColor.RGB = RGB(Red, Blue, Green)
.BackColor.RGB = RGB(Red, Blue, Green)
End With
(The items in italics are variables.)
The problem comes when I try to define a fill style and I have tried:
With plotsheet.Shapes.AddShape(1, Startx, Starty, BoxWidth, BoxHeight).Fill
.ForeColor.RGB = RGB(Red, Blue, Green)
.BackColor.RGB = RGB(Red, Blue, Green)
.Interior.Pattern = xlPatternCrissCross
End With
I am trying to set a transparency and a pattern type of vertical lines. Can anybody offer any assistance to what the ".Interior.Pattern = xlPatternCrissCross" should be replaced with?
Thanks