G
Guest
I have the following expression in a line of code that I am writing. The
fld_name(colm) is an array of names that may be on a given sheet. The
statement results in an application defined error, since the fld_name(2) does
not exist. How do I check for the existence of a name?
I did search the general question and the programming groups, did not find a
close enough answer.
a1 = ActiveWorkbook.Names(fld_name(colm)).RefersTo
fld_name(colm) is an array of names that may be on a given sheet. The
statement results in an application defined error, since the fld_name(2) does
not exist. How do I check for the existence of a name?
I did search the general question and the programming groups, did not find a
close enough answer.
a1 = ActiveWorkbook.Names(fld_name(colm)).RefersTo