ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Merging 2 excel file into single excel (https://www.excelbanter.com/excel-programming/354378-merging-2-excel-file-into-single-excel.html)

moonwalker[_7_]

Merging 2 excel file into single excel
 

I've been searchign the forum but i cant find a specified help.

I have two xls files, a.xls and b.xls
i want to combine them into c.xls with worksheet a and b

can anyone give me some guide on this?
Im using vbscript

Set objXL = WScript.CreateObject ("Excel.Application")
Set objWb = objXl.WorkBooks.Add
Set objWb = objXL.ActiveWorkBook.WorkSheets(1)
objWB.name = "a"
objWb.Activate

The above code open a need workbook with name "a". How to get a.xls
into the current workbook?
Appreciate ur help


--
moonwalker
------------------------------------------------------------------------
moonwalker's Profile: http://www.excelforum.com/member.php...o&userid=31766
View this thread: http://www.excelforum.com/showthread...hreadid=516470



All times are GMT +1. The time now is 05:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com