How do you merge Excel workbooks thru VB 
Author Message
 How do you merge Excel workbooks thru VB

I have three workbooks that I want to merge into one. So
far, I haven't had any luck anything I've tried. Any
suggestions?


Mon, 14 Nov 2005 02:17:38 GMT  
 How do you merge Excel workbooks thru VB
What have you tried? What version of excel are you using?


Quote:
> I have three workbooks that I want to merge into one. So
> far, I haven't had any luck anything I've tried. Any
> suggestions?



Mon, 14 Nov 2005 02:56:10 GMT  
 How do you merge Excel workbooks thru VB
What I have tried is the MergeWorkbook mehtod.
Quote:
>-----Original Message-----
>What have you tried? What version of excel are you using?



>> I have three workbooks that I want to merge into one. So
>> far, I haven't had any luck anything I've tried. Any
>> suggestions?

>.



Mon, 14 Nov 2005 03:43:44 GMT  
 How do you merge Excel workbooks thru VB
The MergeWorkBook Method adds changes from a workbook into another open one.

If you want to take 3 workbooks and turn them into one workbook, you'll
probably want to open each workbook and get the usedrange into a range
object and then add the 3 range objects to the new book.

Search the Microsoft.public.excel.programming groups archive for more info.
There are many examples of doing this.

I'd also check out http://j-walk.com/ss/excel/index.htm  This site has
excellent programmers resources for Excel.

HTH

Matt


Quote:
> What I have tried is the MergeWorkbook mehtod.
> >-----Original Message-----
> >What have you tried? What version of excel are you using?



> >> I have three workbooks that I want to merge into one. So
> >> far, I haven't had any luck anything I've tried. Any
> >> suggestions?

> >.



Mon, 14 Nov 2005 04:12:56 GMT  
 How do you merge Excel workbooks thru VB
Thanks. I'll go see what I can get.
Quote:
>-----Original Message-----
>The MergeWorkBook Method adds changes from a workbook

into another open one.
Quote:

>If you want to take 3 workbooks and turn them into one
workbook, you'll
>probably want to open each workbook and get the usedrange
into a range
>object and then add the 3 range objects to the new book.

>Search the Microsoft.public.excel.programming groups

archive for more info.
Quote:
>There are many examples of doing this.

>I'd also check out http://j-walk.com/ss/excel/index.htm  
This site has
>excellent programmers resources for Excel.

>HTH

>Matt



>> What I have tried is the MergeWorkbook mehtod.
>> >-----Original Message-----
>> >What have you tried? What version of excel are you
using?



>> >> I have three workbooks that I want to merge into
one. So
>> >> far, I haven't had any luck anything I've tried. Any
>> >> suggestions?

>> >.

>.



Mon, 14 Nov 2005 04:37:40 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Word2000 Mail merge from selected sheet in Excel workbook

2. Excel HRESULT: 0x800A03EC when using Workbooks.open or Workbooks._opentext in C#

3. Excel 97/2000: making custom functions (in a hidden workbook) available to all open workbooks

4. VBA: Excel workbook to workbook transfer

5. combine multiple excel workbooks into one workbook

6. Excel Workbook takes too long to open in Excel 2000

7. How can I open Excel workbook without using Excel.Worksheet

8. ASP using a VB DLL to open an Excel workbook

9. how delete a macro within an Excel Workbook by using VB

10. Help writing to Excel Workbook from VB app

11. Opening a Excel 5.0 Workbook with VB Code

12. cancel changes in excel workbook in vb

 

 
Powered by phpBB® Forum Software