I am looping through a row while looking for the string "Yes". If the string is found, I want to copy the value in the cell one column to the left of it and paste it in another worksheet.
The part of my code I'm struggling with is referencing the cell offset the cell that contains the string "Yes". Would the code not simply be something like ActiveCell.Offset(-1,0)?
I might be thinking about this the wrong way so I am open to suggestions.
Sub This_One_Will_Work() Dim Y_N_Column As Integer, LastColumn As Integer, CurrentRow As Integer, LastRow As Integer, New_Market_Tracker As Range 'need ActiveRow as variable and for it to go up 3 times Y_N_Column = 2 Last_Open_Row = ThisWorkbook.Worksheets("Markets to Open").UsedRange.Rows.Count Last_Tracker_Row = ThisWorkbook.Worksheets("Market Tracker").UsedRange.Rows.Count Set New_Market_Tracker = ThisWorkbook.Worksheets("Market Tracker Template").Range("A1:T1") 'ActiveCell = cell with the offset the "Yes" cell in the Y_N_Column Do While Y_N_Column <= Last_Open_Row If ThisWorkbook.Worksheets("Market to Open").Cells(1, Y_N_Column).Value = "Yes" Then ActiveCell.Offset(0, -1).Copy Sheet6.Range("A1").Offset(Last_Tracker_Row, 0) 'End If End If Y_N_Column = Y_N_Column + 1 Loop End Sub 
Cells(1, Y_N_Column-1).Valuewould work; similar to usingoffsetyou listed for the activecell but not requiring anything beyond the -1 to the columnActiveCelllike this.