vba check if selection is a column code example
Example: vb check if row has column
If DataRow.Table.Columns.Contains("column") Then
MsgBox("YAY")
End If
If DataRow.Table.Columns.Contains("column") Then
MsgBox("YAY")
End If