Is it possible to create a custom cell pattern in Excel? For example, I would like to create a modified pattern of the horizontal stripe, where there is only one stripe in the middle of the cell.
Well, here's a way to put a line in a cell. However, it does not resize with a change in row height. Select a cell and run AddLine...
Code:
Sub AddLine()
With ActiveCell
Set oLine = ActiveSheet.Shapes.AddLine(.Left, .Top + .Height / 2, .Left + .Width, .Top + .Height / 2)
End With
Set oLine = Nothing
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.