I have an excel sheet that looks like this
data1 data2 data3 ... data10
... ... ... ... ...
dataX dataY dataZ ... dataN
I need to somhow “flatten” the data into one single column like this:
data1
data2
data3
...
data10
dataX
dataY
dataZ
...
dataN
I tried creating a macro that would automate a copy+paste process starting from a selection. Here’s my code:
Sub copyIn1Col()
'
' copyIn1Col Macro
'
' Keyboard Shortcut: Ctrl+r
'
Selection.copy
Range("B31").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("D3:D13").Select
End Sub
The problem with that is that it overwrites the copied selection to the same range.
The most simplest and fastest would be to use arrays. I am assuming the following
A1toE15A1Hope this is what you want?