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 a
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 no
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
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 t
another when you don't know how many rows there are
--
zaphod200
-----------------------------------------------------------------------
zaphod2003's Profile:
http://www.excelforum.com/member.php...fo&userid=3436
View this thread:
http://www.excelforum.com/showthread.php?threadid=54139