
Originally Posted by
paokun
Yep, the line LR = ws.Range("F" & Rows.Count) imports everything in column F even if there are empty cells in between.
Nope...I realize you're having an issue and we'll work through it, but we need to clarify what each line of code does. The line of code you cited above doesn't import anything. It serves only to find the bottom row of data.
The second line of code does the actual copy job and it only copies visible data. So nothing hidden should be seen. The sample files you gave earlier this code worked fine on, so if there is some significant difference, perhaps we should look at the new files you're trying.
However, if the last cell with text in column F is F30, and I have some text in M35, M35 won't be imported, it will only go as far as M30.
Ah, is this the real issue? Spotting the bottom row properly is a pain sometimes. Most of my sheets, the first column (column A) always has something in it for every row of data, you don't have a key column like that on your worksheet? Also, having stuff hidden makes that a little trickier if the key column is hidden too.
Try this, your mileage may be better:
Bookmarks