ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Indication that there is a # cell value in the range (https://www.excelbanter.com/excel-programming/404022-indication-there-cell-value-range.html)

avi

Indication that there is a # cell value in the range
 
Hello,

I look for a very fast code that will indicates the presence of at
least one #N/A, #DIV!....in a range the user select

Thanks a lot
Avi




JP[_4_]

Indication that there is a # cell value in the range
 
Selection.SpecialCells(xlCellTypeFormulas, 16).Select


HTH,
JP

On Jan 10, 12:19*pm, avi wrote:
Hello,

I look for a very fast code that will indicates the presence of at
least one #N/A, #DIV!....in a range the user select

Thanks a lot
Avi



Mike H

Indication that there is a # cell value in the range
 
One way

Sub merged()
For Each c In Selection
If (IsError(c.Value)) Then
MsgBox "Error at " & c.Address
End If
Next
End Sub


Mike

"avi" wrote:

Hello,

I look for a very fast code that will indicates the presence of at
least one #N/A, #DIV!....in a range the user select

Thanks a lot
Avi






All times are GMT +1. The time now is 04:19 AM.

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