I'm running a loop that takes the values of certain cells from a range of rows the user has selected on one sheet, and copies them to cells in another sheet in the same workbook.
It works fine, except it is unbelievably slow... nearly 4 seconds per loop.
Obviously there is something terribly inefficient about my code, but I can't imagine what it is. Can someone suggest a more efficient way to accomplish this? The slow part is lines 3 and 4 of the 5 lines of code below. Each of those 2 lines are taking nearly 2 seconds to process, each time through.
The code takes the values from the 4th and 6th columns in the selected rows and places them in Columns A and B, respectively, starting in row 2, of a worksheet named "Cstates", in the same workbook. It needs to work regardless of the number of rows selected, which sometimes may be up to 1000 rows or so, which would take over an hour.
Help appreciated!
Bookmarks