Hi,
I am trying to create a macro to copy data from one excel workbook to another. I need to do this for each name listed. There may be multiple lines for each name so must filter for each name and copy all data.
The list of names will differ each day that this macro is run so i cannot use the specific names in the macro. Not used macros in a long time and memory is completely failing me. Any help appreciated. Data example below
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]City[/TD]
[TD]Country[/TD]
[TD]Amount[/TD]
[TD]Yes/No[/TD]
[/TR]
[TR]
[TD]Alex[/TD]
[TD]2/5/15[/TD]
[TD]London[/TD]
[TD]UK[/TD]
[TD]55[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Linda[/TD]
[TD]3/5/15[/TD]
[TD]Glasgow[/TD]
[TD]UK[/TD]
[TD]62[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]5/5/15[/TD]
[TD]Birmingham[/TD]
[TD]UK[/TD]
[TD]32[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Alex[/TD]
[TD]9/5/15[/TD]
[TD]London[/TD]
[TD]UK[/TD]
[TD]22[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Leo[/TD]
[TD]10/5/15[/TD]
[TD]Edinburgh[/TD]
[TD]UK[/TD]
[TD]36[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Alex[/TD]
[TD]15/5/15[/TD]
[TD]Nottingham[/TD]
[TD]UK[/TD]
[TD]99[/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
Result should be 4 individual work books, 1 for Alex with 3 lines, 1 for Linda with 1 line, 1 for John with 1 line and 1 for Leo with 1 line.
Thanks
I am trying to create a macro to copy data from one excel workbook to another. I need to do this for each name listed. There may be multiple lines for each name so must filter for each name and copy all data.
The list of names will differ each day that this macro is run so i cannot use the specific names in the macro. Not used macros in a long time and memory is completely failing me. Any help appreciated. Data example below
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]City[/TD]
[TD]Country[/TD]
[TD]Amount[/TD]
[TD]Yes/No[/TD]
[/TR]
[TR]
[TD]Alex[/TD]
[TD]2/5/15[/TD]
[TD]London[/TD]
[TD]UK[/TD]
[TD]55[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Linda[/TD]
[TD]3/5/15[/TD]
[TD]Glasgow[/TD]
[TD]UK[/TD]
[TD]62[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]5/5/15[/TD]
[TD]Birmingham[/TD]
[TD]UK[/TD]
[TD]32[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]Alex[/TD]
[TD]9/5/15[/TD]
[TD]London[/TD]
[TD]UK[/TD]
[TD]22[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Leo[/TD]
[TD]10/5/15[/TD]
[TD]Edinburgh[/TD]
[TD]UK[/TD]
[TD]36[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Alex[/TD]
[TD]15/5/15[/TD]
[TD]Nottingham[/TD]
[TD]UK[/TD]
[TD]99[/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
Result should be 4 individual work books, 1 for Alex with 3 lines, 1 for Linda with 1 line, 1 for John with 1 line and 1 for Leo with 1 line.
Thanks