Thanks for your message. I had seen the post and have been using it to try out ideas all weekend. (on and off).
' Simple copy paste without using Active stuff
wsVIn.Range(Cells(2, 1), Cells(2 + x, 9)).Copy 'Copy to Clipboard. Do Copy Paste in two lines allowing selecting particular version of Copy held in Clipboard
wsV3_5.Range("A8").PasteSpecial Paste:=xlPasteValues 'Being very Explicit here with an extra line enabling us to Paste Special with arguments to make sure the correct version from Clipboard is copied
'
PasteDown "Orders_In"
Mysort "Orders_In", "Width", "Shape", "colours", "Height"
PasteDown2 "Orders_In", 2
'On Error GoTo 0
End Sub[/CODE]
I realised that you had dimensioned wsVin as a worksheet but set it as a workbook. I corrected this by setting it
with the line
this was accepted.
The line
was also accepted but the line
was rejected with the message Method Range of worksheet failed.
and there I got stuck because if the other two lines were OK I cant see why this one is not. As I wrote I could see that I had muddled worksheets and workbooks again.
When this problem is sorted I will still have a more fundamental one which is that the Vista.xlsx file is from an external source. I cannot know the name of the sheet we need in advance, (which is why I was trying ActiveSheet.)
Perhaps I will have to rename it first.
I will be very interested to see your comments.
John
Bookmarks