GerardHello - Does anyone know how to input value into a cell say "A1 =2" and have that cell draw a line two blocks wide in cells B1 and C1.
Excel Workbook | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | 2 | |||||||||||
2 | 4 | |||||||||||
3 | 1 | |||||||||||
4 | 0 | |||||||||||
5 | 6 | |||||||||||
6 | ||||||||||||
Draw Blocks |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
B1 | 1. / Formula is =COLUMNS($B1:B1)<=$A1 | Abc |
Hmm, see if this does what you want then?Peter,
Thanks for the speedy reply, what I'm looking for is the physical lines next to "autoshape" button in the bottom of the screen. I want to have a value in A1 = 1 and see a solid line through B1 using the drawn line.
ActiveSheet.Shapes.AddLine(ColW(2, 1), (RowH(2, c.Row - 1) + RowH(2, c.Row)) / 2, _
ColW(2, c.Value + 1), (RowH(2, c.Row - 1) + RowH(2, c.Row)) / 2).Select
With ActiveSheet.Shapes.AddLine(ColW(1), (RowH(c.Row - 1) + RowH(c.Row)) / 2, _
ColW(c.Value + 1), (RowH(c.Row - 1) + RowH(c.Row)) / 2).Line
.Weight = 10
.Pattern = msoPatternZigZag
End With