Hello everyone,
I have a group of columns "N:T" which contains a variable number of rows, I want to add two empty lines after each row in this group of columns starting from cell "N2" and ending at the last row of the of column “T”.
Data outside of the "N:T" columns should not be modified.
I would like to ask you for a solution with arrays (if it is possible) because there are a large number of lines to process.
Sheet before inserting the two empty lines
Result after inserting the two empty lines
Thank you in advance for your contributions.
I have a group of columns "N:T" which contains a variable number of rows, I want to add two empty lines after each row in this group of columns starting from cell "N2" and ending at the last row of the of column “T”.
Data outside of the "N:T" columns should not be modified.
I would like to ask you for a solution with arrays (if it is possible) because there are a large number of lines to process.
Sheet before inserting the two empty lines
Permuter2Ranges.xlsm | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |||
1 | a | b | c | d | e | f | g | h | i | j | k | l | m | Jeune | Père | Mère | Jeune | Père | Mère | |||||||
2 | a | b | c | d | e | f | g | h | i | j | k | l | m | NM96-010/2021 F | NM96-002/2020 M | NM96-020/2020 F | NM96-008/2021 M | NM96-002/2020 M | NM96-020/2020 F | n | o | p | q | |||
3 | a | b | c | d | e | f | g | h | i | j | k | l | m | AE27-026/2022 F | NM96-046/2019 M | NM96-036/2021 F | AE27-018/2022 M | NM96-005/2021 M | AE27-068/2021 F | n | o | p | q | |||
4 | a | b | c | d | e | f | g | h | i | j | k | l | m | AE27-037/2022 F | NM96-005/2021 M | AE27-068/2021 F | AE27-019/2022 M | NM96-005/2021 M | AE27-068/2021 F | n | o | p | q | |||
Feuil1 |
Result after inserting the two empty lines
Permuter2Ranges.xlsm | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | |||
1 | a | b | c | d | e | f | g | h | i | j | k | l | m | Jeune | Père | Mère | Jeune | Père | Mère | ||||||||
2 | a | b | c | d | e | f | g | h | i | j | k | l | m | NM96-010/2021 F | NM96-002/2020 M | NM96-020/2020 F | NM96-008/2021 M | NM96-002/2020 M | NM96-020/2020 F | n | o | p | q | rstwxyz | |||
3 | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | rstwxyz | |||||||||
4 | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | rstwxyz | |||||||||
5 | AE27-026/2022 F | NM96-046/2019 M | NM96-036/2021 F | AE27-018/2022 M | NM96-005/2021 M | AE27-068/2021 F | |||||||||||||||||||||
6 | |||||||||||||||||||||||||||
7 | |||||||||||||||||||||||||||
8 | AE27-037/2022 F | NM96-005/2021 M | AE27-068/2021 F | AE27-019/2022 M | NM96-005/2021 M | AE27-068/2021 F | |||||||||||||||||||||
9 | |||||||||||||||||||||||||||
10 | |||||||||||||||||||||||||||
11 | |||||||||||||||||||||||||||
Feuil1 |
Thank you in advance for your contributions.