Function to Check Borders
If Selection.Borders(xlEdgeBottom).Weight = xlThin _
Then ActiveCell.FormulaR1C1 = "1" Else ActiveCell.FomulaR1C1 = "0"
"Marco" wrote:
I want to create a function that will check a cell for a bottom border and
return a 1 if True or 0 if False.
My function will be in cell M15, checking cell A14 for the border.
I have the following, which is returning a #NAME? error:
If Range.Select.Borders(xlEdgeBottom).Weight = xlThin _
Then ActiveCell.FormulaR1C1 = "1" Else ActiveCell.FomulaR1C1 = "0"
Thank you in advance for your help
Marco
|