Hi,
I have a data entry sheet in which one column holds an index match formula, the rest is just entered data.
I have a macro that copies any rows with data in column H and pastes them into another sheet. Everything works well except that the formula result does not get copied to the second sheet.
My code goes like this:
macro carries on to some formatting stuff.
Any ideas?
I have a data entry sheet in which one column holds an index match formula, the rest is just entered data.
I have a macro that copies any rows with data in column H and pastes them into another sheet. Everything works well except that the formula result does not get copied to the second sheet.
My code goes like this:
Code:
Sub SmartCopy()
Application.ScreenUpdating = False
Dim y As Integer
y = 1
For x = 2 To 60
If Sheets("Entry").Cells(x, 8) <> "" Then
Do While Sheets("Data").Cells(y, 8) <> ""
y = y + 1
Loop
Sheets("Entry").Rows(x).Copy Destination:=Sheets("Data").Rows(y)
y = 1
End If
Next x
End Sub
Any ideas?
Last edited by a moderator: