I have a table which some particular content I want to copy into new Excel file. I have almost managed to achieve this. I have used following snippet for selection of data of my interest
Range(Range("A3"), Range("H3").End(xlDown))
This works fine for columns which have complete data. However, this does not work for columns which are mostly sparse. I am sure about last row of this column, which is Range("H3").End(xlDown)
but I need somehow to increment H
to M
so the row index is same.
I looked in this topic VBA: Selecting range by variables, nevertheless I was not able to utilize this solution (I am using VBA for one day).
Can you give me some advice about this, please?
I am not sure, if I have described my problem well. If it is not clear, I could try to do it better.