This should work:
Since you say the nnumber of securities you need to "transpose" is over 10k, I think that at one point you will run out of columns, so when that happens the code I provide will move to the next row. You could add a multiplier to the variable n so that instead of 1 row it moves downwards more, in case you also need to leave space between lines. For example, if you change
to
then you will be leaving 3 empty rows in between used rows. You can also change the 16 to whichever row you want your data to start at.
Bookmarks