How the heck do you guys (gals) do this? LOL
You make it seem simple with the methods you use.
I see the loop need not be within the"For Each" as I thought.
Thank you!
My last humbling attempt. Which only resulted in the last entry (49) being pasted to sheet2 for all 9 total values found. (Just so you know I was working on it.)
Sub aaa()
If Left(ActiveWorkbook.Name, 4) = "Copy" Then
'iTimeStart = Now() 'Time counter start to time macro
With Sheets("Sheet1") 'Loop thru Column A
Sh1LastRow = .Cells(Rows.Count, "A").End(xlUp).Row
Set Sh1Range = .Range("A10:A" & Sh1LastRow)
End With
'With Sheets("Sheet2") 'Loop thru Column A
'Sh2LastRow = .Cells(Rows.Count, "A").End(xlUp).Row
'Set Sh2Range = .Range("A1:A" & Sh2LastRow)
'End With
For Each Sh1Cell In Sh1Range
If IsNumeric(Sh1Cell.Offset(0, 3).Value) = True Then
If Sh1Cell.Offset(0, 5).Comment Is Nothing Then
If Sh1Cell.Offset(0, 5).Value <> "" Then
sBubbleNumber = Sh1Cell.Offset(0, 3).Value
sDimValue = Sh1Cell.Offset(0, 5).Value
Sh1Cell.Activate
'add "For Each" or "Loop" for sheet2?
With Sh1Cell
'MsgBox sBubbleNumber & " " & sDimValue 'for testing
With Sheets("Sheet2") 'Loop thru Column A
Sh2LastRow = .Cells(Rows.Count, "A").Top(xlDown).Row
Set Sh2Range = .Range("A1:A" & Sh2LastRow)
End With
For Each Sh2Cell In Sh2Range
Sh2Cell.Value = sBubbleNumber
Sh2Cell.Offset(0, 1).Value = sDimValue
Next Sh2Cell
End With
End If
End If
End If
Next Sh1Cell
End If
End Sub
Just ignor my code, it may cause brain damage.
Bookmarks