Finding Cells that have an "X" through them.

Fire_Chief

Well-known Member
Joined
Jun 21, 2003
Messages
693
Office Version
  1. 365
Platform
  1. Windows
I have a sheet that has several of the cell's with an X through them.
I put the X through them with the Border tool.
If it makes a difference, the X s are red and the cells have names in them.

I want to find these cells with VBA. I have tried every code I can thing of, but nothing works.
If I can find a cell, I can do what I need with it with more code.... But I can't lol
I guess I'm just not that good with code....but I am learning.

Thank You
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Try this...

VBA Code:
    If Range("A1").Borders(xlDiagonalDown).LineStyle <> xlNone And Range("A1").Borders(xlDiagonalUp).LineStyle <> xlNone Then
        MsgBox ("X found")
    End If
 
Upvote 0
Solution
Thank you so much. I would have never gotten that one
Worked great
 
Upvote 0

Forum statistics

Threads
1,215,746
Messages
6,126,643
Members
449,325
Latest member
Hardey6ix

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