Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a custom cell pattern in Excel??

Status
Not open for further replies.

JTD1

Technical User
May 8, 2003
6
US
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.

Possible or Not??????
 

Don't really know any way to add custom patterns, but here are some ideas.

For a horizontal line through the cells just add spaces for the length of the cell and format the cell with strikethrough.

Alternatively make the cells really small and use the individual cells as pixels. I have seen this used to great effect.
 
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
:)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top