excel - Error 424 (object required) when trying to paste data into a separate (different) workbook -


i have workbook i want export selected data separate workbook, i'm getting runtime error 424 when try paste. code below;

this works fine in source workbook;

sheets("coding analysis").range("$a$24:$p$581").autofilter field:=1, criteria1:="1"     range("b23:p1124").copy     selection.copy` 

when try paste target workbook opens fine & page selection runs runtime error on range line

workbooks.open("d:\test.xlsx").activate     sheets("caseman").select '---error line below--- range("a1").select.end(xlup).offset(2, 0).pastespecial application.cutcopymode = false** activeworkbook.save 

any assistance appreciated!


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -