line or border inside a cell?

masc

New Member
Joined
May 10, 2009
Messages
10
I have a unique cell, lets say A1="A"
and i want to draw a line or place a border horinzontal or vertical inside the cell, so that the letter "A" looks like it was crossed.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Code:
With Selection.Borders(xlDiagonalDown)
        .LineStyle = xlContinuous
        .Weight = xlThin
        .ColorIndex = xlAutomatic
End With
 
Upvote 0
Couldn't you just use diagonal Borders for this, or am I missing something?

Matty
 
Upvote 0
The only thing I can think of is setting the Strike Through property on the font

Rich (BB code):
    With Selection.Font
        .Strikethrough = True
    End With

Or if you know the specific cell.. simply put in
Rich (BB code):
Range("YOUR CELL LOCATION").Font.Strikethrough = True
 
Last edited:
Upvote 0
Code:
    With Selection
         .Interior.Pattern = xlLightVertical
         .Font.Strikethrough = True
    End With
 
Upvote 0
what about one line only like the Strikethrough for the vertical, or a way to create a pattern of one vertical line?
 
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,242
Members
448,951
Latest member
jennlynn

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top