griffindor2020
New Member
- Joined
- Jun 6, 2020
- Messages
- 20
- Office Version
- 2016
- Platform
- MacOS
Hello,
I would like to transpose a range of data (A1 to KJ1) from every second row (row 1, row 3, row 5, until the last row) under one single column (e.g. column C) in the same sheet.
I am having difficulty creating a macro with a loop that will help me do this. I tried following some youtube tutorials online, but it is not working out very well for me.
It says that there is a compile error : argument not optional.
I have thousands of rows to transpose into one single column.
Please see my script below.
I would like to transpose a range of data (A1 to KJ1) from every second row (row 1, row 3, row 5, until the last row) under one single column (e.g. column C) in the same sheet.
I am having difficulty creating a macro with a loop that will help me do this. I tried following some youtube tutorials online, but it is not working out very well for me.
It says that there is a compile error : argument not optional.
I have thousands of rows to transpose into one single column.
Please see my script below.