Hello all,
My question is Is there any line of code that looks for just "#Ref!" errors?
We have an excel sheet which is a roll-up of other excel workbooks. The workbooks are named after their "epr" number.
If a user enters a epr number, the macro checks the directory for the epr number b4 grabbing data from the sheet.
How it checks the directly is it actually trys to pull data, and if the first peice of data comes back as a "#REF!" then it assumes theres no file.
I was using "Iserror" to check this, but it turns out that line of code also checks for permissions, and that snaged us.
Is there any line of code that looks for just "#Ref!" errors?
I tried "CVErr(xlErrRef)" but I can't seem to figure out the syntax, and help files no help
=ERROR.TYPE(D12) seems to only work in an excel cell not in VBA??
Thank you!
My question is Is there any line of code that looks for just "#Ref!" errors?
We have an excel sheet which is a roll-up of other excel workbooks. The workbooks are named after their "epr" number.
If a user enters a epr number, the macro checks the directory for the epr number b4 grabbing data from the sheet.
How it checks the directly is it actually trys to pull data, and if the first peice of data comes back as a "#REF!" then it assumes theres no file.
I was using "Iserror" to check this, but it turns out that line of code also checks for permissions, and that snaged us.
Is there any line of code that looks for just "#Ref!" errors?
I tried "CVErr(xlErrRef)" but I can't seem to figure out the syntax, and help files no help
=ERROR.TYPE(D12) seems to only work in an excel cell not in VBA??
Thank you!