Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #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 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

Reply
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
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
Merging 2 excel file into single excel moonwalker[_6_] Excel Programming 5 February 26th 06 09:25 AM
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 01:57 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"