I have written the following code and cant the paste command to work. I suspect that i have made a syntax error somewhere but i cant work it out. I can send the full code to anyone if that would help. Any help would be greatly appreciated. the range that i am trying to copy comes from another workbook and that is the one that is closed at the start of the code shown.
Range(Cells(8, column_copy), Cells(133, column_copy)).Select
Selection.Copy
'closing
ActiveWorkbook.Close (savechanges = False)
Workbooks(wbname1).Sheets(plant).Select
' pasting routine
Range(Cells(5, column_copy), Cells(130, column_copy)).Select
' this stupid line doesnt work!!!
Selection.PasteSpecial paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Cheers in advance, Mat
Bookmarks