Group,
I've written a couple of macros. The first one finds the last row on the spreadsheet. In my current sheet, there are approximately 55,000 rows. It works fine with no problems.
The second macro finds the blank cell (there are lots of them) and fills it in with copied data from the row above. This macro stops (or appears to stop) after 700+ iterations. Here's the short code:
Sub MergeColumnA()
For iRow = 5 To endRow
aRowVal = Cells(iRow, 1).Value
If aRowVal = "" Then
Cells((iRow - 1), 1).Select
Selection.Copy
Cells(iRow, 1).Select
ActiveSheet.Paste
End If
Next
End Sub
Is there a way to fix this so that it will run smoothly and without the spreadsheet "Not responding"?
Thanks for your help.
Don
I've written a couple of macros. The first one finds the last row on the spreadsheet. In my current sheet, there are approximately 55,000 rows. It works fine with no problems.
The second macro finds the blank cell (there are lots of them) and fills it in with copied data from the row above. This macro stops (or appears to stop) after 700+ iterations. Here's the short code:
Sub MergeColumnA()
For iRow = 5 To endRow
aRowVal = Cells(iRow, 1).Value
If aRowVal = "" Then
Cells((iRow - 1), 1).Select
Selection.Copy
Cells(iRow, 1).Select
ActiveSheet.Paste
End If
Next
End Sub
Is there a way to fix this so that it will run smoothly and without the spreadsheet "Not responding"?
Thanks for your help.
Don