I run a macro that produces a column of data named "Cumulative_Reliability". I want to paste this column into a seperate sheet called "DataTable". Next time I run the macro, I want to paste the new "Cumulative_Reliability" dataset into "DataTable, in the next column to the right, thus producing a record of all the results from up to about 100 runs.
If column A is blank, this pastes the data in column B, then the next lot overwrites column B![[surprise] [surprise] [surprise]](/data/assets/smilies/surprise.gif)
If column A contains data, it pastes in B <Yaayyy!> then the next run pastes in....B![[flame] [flame] [flame]](/data/assets/smilies/flame.gif)
What's wrong with my code?
Chris
Beer is God's way of telling us He loves us and wants us to be happy - Benjamin Franklin
Code:
Sheets("Simulation").Range("Cumulative_Reliability").Copy
Sheets("DataTable").Range("A1").End(xlToRight).Offset(0, 1).PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
If column A is blank, this pastes the data in column B, then the next lot overwrites column B
![[surprise] [surprise] [surprise]](/data/assets/smilies/surprise.gif)
If column A contains data, it pastes in B <Yaayyy!> then the next run pastes in....B
![[flame] [flame] [flame]](/data/assets/smilies/flame.gif)
What's wrong with my code?
Chris
Beer is God's way of telling us He loves us and wants us to be happy - Benjamin Franklin