The code I have written below copies an entire row of cells from one worksheet to another but what I need to do is copy certain cells within the row to another worksheet.
For RowIndex = 1 To 250
Set curCell = Worksheets("Products").Cells(RowIndex, 1)
If Left(curCell, 6) = ProductFamily Then
Worksheets("Products").Cells(RowIndex, 1).EntireRow.Copy
Selection.EntireRow.Insert
Else
If Left(curCell, 7) = ProductFamily Then
Worksheets("Products").Cells(RowIndex, 1).EntireRow.Copy
Selection.EntireRow.Insert
End If
End If
Next RowIndex
I figure I have to assign the data to a value or something along those lines but I can't wrap my noggin around it at the moment.
For RowIndex = 1 To 250
Set curCell = Worksheets("Products").Cells(RowIndex, 1)
If Left(curCell, 6) = ProductFamily Then
Worksheets("Products").Cells(RowIndex, 1).EntireRow.Copy
Selection.EntireRow.Insert
Else
If Left(curCell, 7) = ProductFamily Then
Worksheets("Products").Cells(RowIndex, 1).EntireRow.Copy
Selection.EntireRow.Insert
End If
End If
Next RowIndex
I figure I have to assign the data to a value or something along those lines but I can't wrap my noggin around it at the moment.