Finding Cells that have an "X" through them.

Fire_Chief

Well-known Member
Joined
Jun 21, 2003
Messages
692
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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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,110
Messages
6,123,143
Members
449,098
Latest member
Doanvanhieu

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