excel - VBA looking for error values in a specific column -


sub macro9() dim lreturnvalue boolean  lreturnvalue = iserror(sheets("lookup addition").range("a:a").value)  if lreturnvalue = false     = msgbox("there no errors", vbokonly) else     = msgbox("there errors", vbokonly) end if  end sub 

i little confused iserror(customfunction()) syntax should be. how tell check every cell in the range?

counting errors in range doesn't require looping (which can slow if range large) or vba.

just add worksheet function cell somewhere. if don't want user see cell, can hide row/column/sheet.

=sumproduct(iserror(a:a)*(1=1)) 

if still want pop-up box user, vba be:

sub counterr()        msgbox "there " & activesheet.range("b1").value & " errors"   end sub 

make sense?


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -