I have a spreadsheet which needs to have some data extracted from it, the data manipulated and then the whole thing exported as a text file.
I have no problem with the second and third part of this but I am struggling with the first part:
How does one use a macro to import columns from another spreadsheet. The problem is I don't want all of the columns, only some and not necessarily in the order in which they are in the original sheet, something like this. I will write this in English so that I hope I explain what I want:
Dim startRow as integer
StartRow = 6
For rows = StartRow to 65536
If Column A is empty then finish
Move to First blank row of output sheet
Import Row X, Column A from Input Sheet
Move to Next Column
Import Row X, Column D from Input Sheet
Move to Next Column
Import Row X, Column B from input sheet
(etc....)
Repeat until all rows are done
The problem is I don't know how to import data from one workbook to another when you don't know how many rows there are.
Bookmarks