Okay I see that now. If I were to have written that code I would have formatted it this way.
Code:
Private Sub startscanregbutton_Click()
Dim ixz As Long
Dim ix As Long
listreg.Clear
Text3.Text = Text3.Text & vbNewLine & "Scanning in progress...Please Wait.."
For ixz = 0 To List2.ListCount - 1
Text1.Text = List2.List(ixz)
For ix = 0 To List2.ListCount - 1
SearchRegMachine List2.List(ix)
Next
Text3.Text = Text3.Text & vbNewLine & Text4.Text
Label3.Caption = Str(listreg.ListCount) & " Possible Problematic Registry Keys"
Text4.Text = "Scanning Complete" & Str(listreg.ListCount) & " Possible Problematic Registry Keys Detected."
Next
End Sub
And what that code does is to put the 1st item from List2 into Text1.text and then call SearchRegMachine for every entry in List2. It then puts the second entry from List2 into Text1 (overwriting what was there) and then call SearchRegMachine for every entry in List2 again. That's probably not what you want so how about just one loop like this.
Code:
Private Sub startscanregbutton_Click()
Dim ixz As Long
Dim ix As Long
listreg.Clear
Text3.Text = Text3.Text & vbNewLine & "Scanning in progress...Please Wait.."
For ixz = 0 To List2.ListCount - 1
Text1.Text = List2.List(ixz)
SearchRegMachine List2.List(ixz)
Text3.Text = Text3.Text & vbNewLine & Text4.Text
Label3.Caption = Str(listreg.ListCount) & " Possible Problematic Registry Keys"
Text4.Text = "Scanning Complete" & Str(listreg.ListCount) & " Possible Problematic Registry Keys Detected."
Next
End Sub
That doesn't solve the overwriting of Text1 problem but it should be a start.