to all
I rather than hardcoding a column in my vba script I am using a defined name to get the column using
iRefCol=Range("RF1RefCol").Column)
where RF1RefCol is the defined name
this works fine
I now want sto capture the possibility of the define nam enot existing in the xls (deleted by user, name changed, etc)
the following does not seem to work
If IsError(iReFCol = Range("RF1RefCol").Column) then
'do something about it!
end if
Any suggestions/ideas? Thanks
Regards
JXB
I rather than hardcoding a column in my vba script I am using a defined name to get the column using
iRefCol=Range("RF1RefCol").Column)
where RF1RefCol is the defined name
this works fine
I now want sto capture the possibility of the define nam enot existing in the xls (deleted by user, name changed, etc)
the following does not seem to work
If IsError(iReFCol = Range("RF1RefCol").Column) then
'do something about it!
end if
Any suggestions/ideas? Thanks
Regards
JXB