ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to find invalid formula references with VBA (https://www.excelbanter.com/excel-programming/431584-how-find-invalid-formula-references-vba.html)

Alan[_8_]

How to find invalid formula references with VBA
 
Is there a way to use VBA to find invalid formula references in an
Excel spreadsheet?

I have some input worksheets I cannot control, and sometimes they
contain invalid formula references. I simply want to delete those
rows. I know how to delete the rows, but not how to find formulas
with problems.

Thanks, Alan



Dave Peterson

How to find invalid formula references with VBA
 
Are you talking about #REF! errors?

If yes, then you can record a macro when you use Edit|Find and look for #REF!.



Alan wrote:

Is there a way to use VBA to find invalid formula references in an
Excel spreadsheet?

I have some input worksheets I cannot control, and sometimes they
contain invalid formula references. I simply want to delete those
rows. I know how to delete the rows, but not how to find formulas
with problems.

Thanks, Alan


--

Dave Peterson

JLGWhiz[_2_]

How to find invalid formula references with VBA
 
You have me confused. what is it that makes the formula invalid? It seems
that if they have bad references the error would be self evident, because
you would get the wrong result.


"Alan" wrote in message
...
Is there a way to use VBA to find invalid formula references in an
Excel spreadsheet?

I have some input worksheets I cannot control, and sometimes they
contain invalid formula references. I simply want to delete those
rows. I know how to delete the rows, but not how to find formulas
with problems.

Thanks, Alan






All times are GMT +1. The time now is 12:04 PM.

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