Hi Snowbird,
You can learn much by just reading code - I learned BASIC in Graduate School, and I taught BASIC in a Community College in the early 80's. Otherwise, I taught myself the Excel VBA using Steven Roman's "Writing Excel Macros" published by O'Reilly. Another good book is the "Excel (Year of your choice) Power Programming" by John Walkenbach published by Wiley -
which can be had from Amazon for about $25.
Here's one way of adding the FindNext to your Finder:
Sub Snowbird(): Dim F As Range, A As Range, r As Long
Set A = Range("A:A")
Set F = A.Find("Apples")
If Not F Is Nothing Then
If F.Offset(0, 2) Then
F = F & " " & F.Offset(0, 2)
r = F.row: End If
Do
Set F = A.FindNext(F)
If F Is Nothing Or F.row <= r Then Exit Sub
If F.Offset(0, 2) Then
F = F & " " & F.Offset(0, 2)
r = F.row: End If
Loop While Not F Is Nothing
End If: End Sub
Bookmarks