alancool wrote: Sub macro1 Dim Counter80o As Integer Counter80o = 0 Range("A1:A10000").Select For rwIndex = 1 To 10000 For colIndex = 1 To 1 With Worksheets("Sheet1").Cells(rwIndex, colIndex) If .Value = "80/tcp open http" Then .Font.Color = vbGreen If .Value = "80/tcp open http" Then Counter80o = Counter80o + 1 If .Value = "80/tcp open http" Then .Font.Bold = True End With Next colIndex Next rwIndex End Sub
Sub Macro2() Dim counter80o As Integer counter80o = 0 Range("A1:A11").Select While counter80o < 10000 ActiveCell.Offset(1, 0).Activate With ActiveCell If .Text = "80/tcp open http" Then .Interior.Color = vbGreen .Font.Bold = True End If End With counter80o = counter80o + 1 Wend End Sub