S
Scott
Hi there,
i already have a macro which grabs required date from a folder on my
machine, and places it into a spreadsheet called mydata, it also sorts the
list etc.
what i would like to do know is to open another document and run a macro to
grab data from mydata and place it into specific fields in a doc called
statement.
i can work the logic out of the macro but do not know where to start.
my thoughts on the macro are as follows
open the document called 'mydata' from the following directory
d:\data\mydata
check column 'A3' and if name contains 'sam' then do the following: (B3 is
the forst cell to contain useful data)
copy data from Cell 'E3' and place it into A24
copy data from Cell 'F3' and place it into B24
copy data from Cell 'G3' and place it into E24
when it has done the first lot of data then it checks the next cell A4 and
if it contains the same name then it will do the following
copy data from Cell 'E4' and place it into A24
copy data from Cell 'F4' and place it into B24
copy data from Cell 'G4' and place it into E24
then it will check A5 etc until cell 'Ax' doesn't contain the required data.
does this make sense to anyone?, if so any advice would be useful.
Regards
Scott
i already have a macro which grabs required date from a folder on my
machine, and places it into a spreadsheet called mydata, it also sorts the
list etc.
what i would like to do know is to open another document and run a macro to
grab data from mydata and place it into specific fields in a doc called
statement.
i can work the logic out of the macro but do not know where to start.
my thoughts on the macro are as follows
open the document called 'mydata' from the following directory
d:\data\mydata
check column 'A3' and if name contains 'sam' then do the following: (B3 is
the forst cell to contain useful data)
copy data from Cell 'E3' and place it into A24
copy data from Cell 'F3' and place it into B24
copy data from Cell 'G3' and place it into E24
when it has done the first lot of data then it checks the next cell A4 and
if it contains the same name then it will do the following
copy data from Cell 'E4' and place it into A24
copy data from Cell 'F4' and place it into B24
copy data from Cell 'G4' and place it into E24
then it will check A5 etc until cell 'Ax' doesn't contain the required data.
does this make sense to anyone?, if so any advice would be useful.
Regards
Scott