In the code below, the loop keeps looping even when the condition is met. When I run it line by line and initially run the loop, I can see where the cell selection starts at J300, and I can see the selection as it moves down the column, but when it gets to the cell where the condition is met, the selection does not offset anymore, but the code continues to loop and it does not go to the next line. What am I doing wrong and what can I do to make it better? Thanks for your help.
Sub RollForwardDataImport()
Dim rcell5, rcell6, rcell7, rcell8, rcell9 As Long
rcell8 = 0
rcell5 = Range("F2").Value
rcell9 = Range("F2").Value
Workbooks.Open "\\Inventory\CA-2016.xlsx"
Worksheets("Total Year").Activate
Range("J300").Select
Do While Selection.Value <> recell5
If Selection.Value = rcell5 Then
ActiveCell.Offset(0, 0).Select
Else: ActiveCell.Offset(1, 0).Select
End If
Loop
ActiveCell.Offset(0, -2).Select
rcell6 = Selection.Value
ActiveCell.Offset(0, -4).Select
rcell7 = Selection.Value
rcell8 = rcell6 + rcell7 + rcell8
Workbooks("Import.xlsm").Activate
Range("H20").Select
ActiveCell.Value = rcell8
Workbooks("CA-2016.xlsx").Close SaveChanges:=False
End Sub