LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Merging 2 excel file into single excel


I've been searching 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=516471

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Single Excel File Unable to Open L.A. Lawyer Excel Discussion (Misc queries) 6 April 23rd 07 07:36 AM
merging single worksheet files into a single workbook DDK Excel Discussion (Misc queries) 1 December 5th 06 05:25 PM
merging data from 1 excel file, into a master excel file motSwE New Users to Excel 2 September 13th 06 06:39 PM
Save a single worksheet in Excel as a single file. Dakota New Users to Excel 4 February 22nd 06 04:46 PM
Sharing of one single Excel file/workbook Jk Excel Worksheet Functions 1 July 6th 05 06:57 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"