Hello everyone,
As I cannot resolve my problem, I am contacting you.
The purpose of my request is to copy the cells of the columns ("B:N") of the Active row to paste them in the first empty row.
Information: We do not take care of column "A" because we only work on columns ("B:N").
To better illustrate my request, we will take an example:
Suppose that I want to copy the cells of the columns ("B:N") of row No. 3, for this, I must select at least one cell in the range ("B3:N3"), so we know how to determine with ( ActiveCell) the line number.
When we know the line number, if we click on a button, we copy all the cells ("B3:N3") in the first empty line, in our case, the first line is line number 5 .
Here is the sheet before executing the code:
Here is the sheet after running the code:
Thank you for your contributions.
As I cannot resolve my problem, I am contacting you.
The purpose of my request is to copy the cells of the columns ("B:N") of the Active row to paste them in the first empty row.
Information: We do not take care of column "A" because we only work on columns ("B:N").
To better illustrate my request, we will take an example:
Suppose that I want to copy the cells of the columns ("B:N") of row No. 3, for this, I must select at least one cell in the range ("B3:N3"), so we know how to determine with ( ActiveCell) the line number.
When we know the line number, if we click on a button, we copy all the cells ("B3:N3") in the first empty line, in our case, the first line is line number 5 .
Here is the sheet before executing the code:
Code_Test.xlsm | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |||
1 | Jeune | Père | Mère | Eleveur | Âge | Volière | Cage | Né(e) | Tours | Couleur | Elevage | Consanguinité | ancêtre principale | Elevage | ||
2 | Ae27-001/2024 F | A1 | B1 | C1 | D1 | E1 | F1 | G1 | H1 | I1 | J1 | K1 | L1 | M1 | ||
3 | Ae27-002/2024 M | A2 | B2 | C2 | D2 | E2 | F2 | G2 | H2 | I2 | J2 | K2 | L2 | M2 | ||
4 | Ae27-003/2024 F | A3 | B3 | C3 | D3 | E3 | F3 | G3 | H3 | I3 | J3 | K3 | L3 | M3 | ||
5 | Ae27-004/2024 F | |||||||||||||||
6 | Ae27-005/2024 M | |||||||||||||||
7 | Ae27-006/2024 M | |||||||||||||||
8 | Ae27-007/2024 M | |||||||||||||||
9 | Ae27-008/2024 M | |||||||||||||||
10 | Ae27-009/2024 M | |||||||||||||||
11 | Ae27-010/2024 M | |||||||||||||||
12 | ||||||||||||||||
13 | ||||||||||||||||
14 | ||||||||||||||||
15 | ||||||||||||||||
Parents |
Here is the sheet after running the code:
Code_Test.xlsm | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |||
1 | Jeune | Père | Mère | Eleveur | Âge | Volière | Cage | Né(e) | Tours | Couleur | Elevage | Consanguinité | ancêtre principale | Elevage | ||
2 | Ae27-001/2024 F | A1 | B1 | C1 | D1 | E1 | F1 | G1 | H1 | I1 | J1 | K1 | L1 | M1 | ||
3 | Ae27-002/2024 M | A2 | B2 | C2 | D2 | E2 | F2 | G2 | H2 | I2 | J2 | K2 | L2 | M2 | ||
4 | Ae27-003/2024 F | A3 | B3 | C3 | D3 | E3 | F3 | G3 | H3 | I3 | J3 | K3 | L3 | M3 | ||
5 | Ae27-004/2024 F | A2 | B2 | C2 | D2 | E2 | F2 | G2 | H2 | I2 | J2 | K2 | L2 | M2 | ||
6 | Ae27-005/2024 M | |||||||||||||||
7 | Ae27-006/2024 M | |||||||||||||||
8 | Ae27-007/2024 M | |||||||||||||||
9 | Ae27-008/2024 M | |||||||||||||||
10 | Ae27-009/2024 M | |||||||||||||||
11 | Ae27-010/2024 M | |||||||||||||||
12 | ||||||||||||||||
13 | ||||||||||||||||
14 | ||||||||||||||||
15 | ||||||||||||||||
Parents |
Thank you for your contributions.