![]()
Sub Record_data() Dim NextRow As Long With Sheets("Data") NextRow = .Cells.Find("*", , , , 1, 2).Row + 1 If NextRow < 8 Then NextRow = 8 .Rows(NextRow).Value = .Rows(5).Value End With End Sub
![]()
Sub Record_data() Dim NextRow As Long With Sheets("Data") NextRow = .Cells.Find("*", , , , 1, 2).Row + 1 If NextRow < 8 Then NextRow = 8 .Rows(NextRow).Value = .Rows(5).Value End With End Sub
Surround your VBA code with CODE tags e.g.;
[CODE]your VBA code here[/CODE]
The # button in the forum editor will apply CODE tags around your selected text.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks