excel vba - How to copy sheets to another *specific* workbook using vba? -


so know answer question how copy sheets workbook using vba? , here code used:

    wb.worksheets(1).copy before:=activewb.worksheets("sheet1") 

so workbook called "wb", copy worksheet within "wb" new workbook called"activewb". before function place sheet in front of "sheet1".

however, want place sheet "wb" "sheet1", not before or after it. tried many many methods, couldn't work. :(

have tried?

wb.worksheets(1).usedrange.copy activewb.worksheets("sheet1").range("a1") 

Comments

Popular posts from this blog

python - cx_oracle unable to find Oracle Client -

shader - OpenGL Shadow Map -

c# - Exchange 2010/2013 TransportAgent Content Conversion for Internal Recipients -