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

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -