Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I have 2 workbook(i.e. 1.xls & 2.xls) at 2 different location, I want to copy all the worksheets present in 2.xls to 1.xls file using vb6. I am trying to open both the files and then trying with this code... Workbooks(2.xls).Worksheets("sheet2").Copy _ After:=Workbooks(1.xls).Worksheets("sheet1") I am getting "subscript out of range" error.... can u plz help me... Thanks in Advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy worksheet from one workbook to a master workbook | Excel Worksheet Functions | |||
Copy Worksheet from one Workbook to another Workbook | Excel Discussion (Misc queries) | |||
Copy Data from Workbook into specific Worksheet in other Workbook? | Excel Discussion (Misc queries) | |||
How do I copy a worksheet form a workbook in my workbook | Excel Programming | |||
copy worksheet from closed workbook to active workbook using vba | Excel Worksheet Functions |