In cell A2 I have a cell reference, which indicates where in the excel sheet a copied value should be pasted (The value in A2 is changeable depending on the number of lines used). I have built a macro that copies a range of values in column M and that shall be pasted in the location specified in A2, in this case Y532. But apparently it's not enough to do as I have done below. What am I doing wrong?
Range("M9").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Range("A2").Value.Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Hopefully someone can help me.
Bookmarks