How do I make a condition to check whether the range I validate are a defined name or do not have a defined name.
Something like this?
If Cells(1, 1) has a defined name Then
' do this
Else
' do another
End If
or smth like this?
dim rng as Range
If rng.Name Is Nothing Then
' do this
Else
' do another
End If
Something like this?
If Cells(1, 1) has a defined name Then
' do this
Else
' do another
End If
or smth like this?
dim rng as Range
If rng.Name Is Nothing Then
' do this
Else
' do another
End If