ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   check cell for #REF! (https://www.excelbanter.com/excel-programming/365609-check-cell-ref.html)

mcphc

check cell for #REF!
 
How do i check if a cell has #REF! anywhere in the cells formula?

ie check if Range("A1").formula =#REF! Or ='Sheet1'#REF! or any formula with
#REF! in it.

Thanks

Clayton

NickHK

check cell for #REF!
 
Clayton,
If Range("A1") = CVErr(xlErrRef) Then

NickHK

"mcphc" wrote in message
...
How do i check if a cell has #REF! anywhere in the cells formula?

ie check if Range("A1").formula =#REF! Or ='Sheet1'#REF! or any formula

with
#REF! in it.

Thanks

Clayton





All times are GMT +1. The time now is 11:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com