Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Excel / September 2007



Tip: Looking for answers? Try searching our database.

Merging Workbooks in Excel 2004 for Mac

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ryantake@gmail.com - 08 Sep 2007 21:15 GMT
Hi there,

I have been trying to splice together various pieces of VBA code off
the web for this problem, but it always seems that there's some PC-
unique element that throws me off (ie: .dll file requirements).  So
hopefully you can help this poor Mac user.

I generate folders of excel workbooks with one worksheet of data
each.  I want excel to ask the user which directory they want (via a
dialog box), then take the workbooks in that directory and combine
them so that there is one final workbook with all of the worksheets
from that directory.

To avoid confusion, let me give you a generic example.  I have 3
directories of excel files on the desktop (A, B, and C).  The first
event I want the macro to do is prompt the user for which directory
they want to work with.  So a dialog box pops up, and I can navigate
to directory B in the tree.  Now, in directory B there are 4 workbooks
(a, b, c, & d).  Each workbook has one worksheet.  The worksheet name
is the same as the workbook name for each file (a, b, c, & d).  I want
the macro to end up with a master workbook that has four worksheets
(a, b, c, & d), one from each of the original workbooks.

I'm sorry to be so long-winded, but I guess I wanted to be too
informative rather not not informative enough.  Thanks so much for
taking some time to read this.

Ryan
Jim Gordon MVP - 09 Sep 2007 17:02 GMT
Hi,

Have you tried GetOpenFileName   ?

-Jim

Quoting from "ryantake@gmail.com" <ryantake@gmail.com>, in article
1189282558.284819.144420@d55g2000hsg.googlegroups.com, on [DATE:

> Hi there,
>
[quoted text clipped - 24 lines]
>
> Ryan

Signature

Jim Gordon
Mac MVP

MVPs are not Microsoft Employees
MVP info http://mvp.support.microsoft.com/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.