Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 11th, 2007, 04:18 AM
Authorized User
 
Join Date: Mar 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need VB help to combine dtaa from opened workbooks

I've 2 macros in 2 different files... which basically does the following:-
1)allowing user to select what files that they want to select.
2)combine the contents for an opened workbook into 1 sheet.

Prob:After the user has selected the files,all the excel files will be opened.Each excel file can contain >2 worksheets.
Ie) If i opened 2 workbooks & each workbook contains 2 worksheets,how do i combine them into 1 worksheet?

Thanks a million



 
Old April 11th, 2007, 04:23 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

hi miracles.

When you open each workbook, each will have a Sheets() collection which allows you to access individual sheets within the workbook.

Are all the sheets the same format/location etc?

Regards,
Rob






Similar Threads
Thread Thread Starter Forum Replies Last Post
comparing rows of two workbooks nasirmunir Excel VBA 2 July 9th, 2008 08:10 PM
two workbooks--matching values within kwik10z Excel VBA 0 November 29th, 2007 11:51 AM
Creating Report from Multiple Workbooks krism Excel VBA 1 June 28th, 2007 08:52 AM
Opening Workbooks With Macros RollingWoodFarm Excel VBA 1 February 11th, 2007 05:48 AM
Searching and Checking Values in other workbooks lavaguava13 Excel VBA 1 September 17th, 2005 04:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.