Hey community!
I have the following table:
<colgroup><col width="80" span="12" style="width:60pt"> </colgroup><tbody>
</tbody>
I would now like to filter by means of VBA and create the results as a new worksheet and save this sheet individually as a new file in a different folder.
The first file results from "AB1" in column 2 and "BE1" in column 3.
The second file results from "AB1" in column 2 and "BE2" in column 3.
The third file results from "AB2" in column 2 and "BA1" in column 3.
The fourth file results from "AB2" in column 2 and "BA2" in column 3.
The fifth file results from "AB3" in column 2 and "BA3" in column 3.
The folder for the first file is: "C: \ Users \ Adam "
The folder for the second file is: "C: \ Users \ Adam \ 1 "
The folder for the third file is: "C: \ Users \ Adam \ 2 "
The folder for the fourth file is: "C: \ Users \ Adam \ 3 "
The folder for the fifth file is: "C: \ Users \ Adam \ 4 "
Does anyone have any idea how this can be implemented?
With IF statements or with Case?
I've already worked with the macro recorder, but it never worked on new records.
Greeting!
I have the following table:
ID | AB | BE | DT | TM | AA | BB | CC | DD | FF | FF | |
1 | AB1 | BE1 | 01.01.2018 | 00:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
2 | AB1 | BE2 | 01.01.2018 | 01:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
3 | AB1 | BE2 | 01.01.2018 | 02:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
4 | AB1 | BE2 | 01.01.2018 | 03:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
5 | AB1 | BE2 | 01.01.2018 | 04:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
6 | AB2 | BA1 | 01.01.2018 | 05:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
7 | AB2 | BA1 | 01.01.2018 | 06:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
8 | AB2 | BA1 | 01.01.2018 | 07:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
9 | AB2 | BA1 | 01.01.2018 | 08:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
10 | AB2 | BA1 | 01.01.2018 | 09:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
11 | AB2 | BA2 | 01.01.2018 | 10:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
12 | AB3 | BA3 | 01.01.2018 | 11:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
13 | AB3 | BA3 | 01.01.2018 | 12:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
14 | AB3 | BA3 | 01.01.2018 | 13:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
15 | AB3 | BA3 | 01.01.2018 | 14:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
16 | AB3 | BA3 | 01.01.2018 | 15:00:00 | 1 | 1 | 1 | 1 | 1 | 1 | |
17 | AB3 | BA3 | 01.01.2018 | 16:00:00 | 1 | 1 | 1 | 1 | 1 | 1 |
<colgroup><col width="80" span="12" style="width:60pt"> </colgroup><tbody>
</tbody>
I would now like to filter by means of VBA and create the results as a new worksheet and save this sheet individually as a new file in a different folder.
The first file results from "AB1" in column 2 and "BE1" in column 3.
The second file results from "AB1" in column 2 and "BE2" in column 3.
The third file results from "AB2" in column 2 and "BA1" in column 3.
The fourth file results from "AB2" in column 2 and "BA2" in column 3.
The fifth file results from "AB3" in column 2 and "BA3" in column 3.
The folder for the first file is: "C: \ Users \ Adam "
The folder for the second file is: "C: \ Users \ Adam \ 1 "
The folder for the third file is: "C: \ Users \ Adam \ 2 "
The folder for the fourth file is: "C: \ Users \ Adam \ 3 "
The folder for the fifth file is: "C: \ Users \ Adam \ 4 "
Does anyone have any idea how this can be implemented?
With IF statements or with Case?
I've already worked with the macro recorder, but it never worked on new records.
Greeting!