Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

test of CF condition

Status
Not open for further replies.

coltaalex

Technical User
Jul 2, 2010
61
US

test for the existence of CF condition in a loop:
for
=LEN(TRIM(P11))=0 the code is :



Dim N As Long, i as long
i = 0
For N = 1 To 9989
If rtrim(Cells(N, 16).text = "" Then
i = i + 1

End If
Next N
if i > 0 then
msgbox "Your message here"
end if


hot to do it with :

"=COUNTIF(Code,P11)"
or =LEN(TRIM(P11))=0
 
test for the existence of CF condition in a loop:
for
=LEN(TRIM(P11))=0 the code is :



Dim N As Long, i as long
i = 0
For N = 1 To 9989
If rtrim(Cells(N, 16).text = "" Then
i = i + 1

End If
Next N
if i > 0 then
msgbox "Your message here"
end if


hot to do it with :

"=COUNTIF(Code,P11)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top