I have a long set of information in columns, sometimes hundreds of rows (This is being generated via VBA). I need to transpose this AND save it as a CSV (as excel would run out of columns).
A screenshot of the table is attached.
Any help is appreciated in advance.
Question has been answered in two different ways. Am sure it will be valuable to many other people.
You take some code to export to CSV, such as from this answer How to create a separate CSV file from VBA? and just change the order you write to the file. E.g. write the column before writing the row
Hopefully that is a good enough to get you going.
Here is a shorter version (I used Nats code as a basis). It should be a lot faster as it does away with looping the rows.