Combine xls - Excel Help & Excel Macro Help
SEARCH ENTIRE SITE LOADING..

OZGRID Excel Help & Excel Best Practices Forums

Information Helpful? Why Not Donate.

SPECIALS PAGE FOR BARGAINS | BUILD YOUR GOLF SWING | FREE CUSTOM FUNCTIONS ADD-IN


Download Active Data For Excel Demo


Go Back Excel Help & Excel Macro Help > HELP FORUMS > EXCEL HELP
HOME Register Forum Help Calendar Search For Today's Posts Mark Forums Read

Reply

Combine xls

ANSWERS TO SIMILAR QUESTIONS
Combine 2 Macros Into OneCombine Several Files Into OneCombine several *.xls files into oneCombine two chart Combine



Javascript DHTML Drop Down Menu Powered by dhtml-menu-builder.com

Create Excel dashboards quickly with Plug-N-Play reports.


 
Thread Tools Search this Thread
Old May 17th, 2003
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
mgpco mgpco is offline
I agreed to these rules
 
I'm a Spammer:
MS Office Version:
Op System:
Assumed Experience:
Join Date: 17th May 2003
English is 1st Language:
Posts: 4 -- Threads: 2
hi,
I have many excel files and the format for all is same
(format of columns and rows)my question is how can I make a program that combine these to one Excel file with
VB.Net or VB 6 and If there is also a program it sounds great !
Print [Post / Thread] Reply With Quote
Old May 17th, 2003
Derk's Avatar
Derk Derk is offline
OzMVP (The Professor)
 
I'm a Spammer: NO
MS Office Version: 2003 English
Op System: Windows XP
Assumed Experience: Expert (I wont be needing help)
Join Date: 15th April 2003
English is 1st Language: Yes
Location: USA
Posts: 7,228 -- Threads: 31
Welcome to the Board!
How do you want to combine them? Append them, add common cells together? Make them separate sheets in one workbook? Why VB.net or VB 6? Why not VBA?
Print [Post / Thread] Reply With Quote
Old May 17th, 2003
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
royUK royUK is offline
Publishes Private Messages
 
I'm a Spammer: YES
MS Office Version:
Op System: Windows XP
Assumed Experience: Poor (know the very basics)
Join Date: 26th January 2003
English is 1st Language:
Location: Lincolnshire,UK
Posts: 12,877 -- Threads: 67
I have used this code to combine several Workbooks. Each Workbook must be open for it to work. I only use to gather Timesheets from several employees (one sheet per book) into one Workbook

Sub Combine()

Dim NewFileName As String
Dim c As Integer
Dim SheetCount As Integer

NewFileName = ActiveWorkbook. Name
c = 1
Do Until c = 0
If Windows(c).Visible = True Then
Windows(c).Activate
MsgBox ("New file to be created")
NewFileName = Application.GetSaveAsFilename _
(, "Microsoft Excel Workbook (*.xls),*.xls")
ActiveWorkbook. SaveAs FileName:=NewFileName, _
FileFormat:=xlWorkbookNormal
NewFileName = ActiveWorkbook.Name
ActiveSheet.Select
c = 0
SheetCount = ActiveWorkbook.Sheets.Count
Else
c = c + 1
End If
Loop
For c = 1 To Workbooks.Count
If Windows(c).Parent.Name <> NewFileName And Windows(c).Visible = True Then
Windows(c).Activate
ActiveWorkbook.Sheets.Copy after:=Workbooks(NewFileName).Sheets(SheetCount)
End If
Next c

End Sub
Print [Post / Thread] Reply With Quote
Old May 17th, 2003
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
mgpco mgpco is offline
I agreed to these rules
 
I'm a Spammer:
MS Office Version:
Op System:
Assumed Experience:
Join Date: 17th May 2003
English is 1st Language:
Posts: 4 -- Threads: 2
may you send the soource code I don't know how to use this source code please send the program that u compiled !


regards
H.B
Print [Post / Thread] Reply With Quote
Old May 17th, 2003
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
royUK royUK is offline
Publishes Private Messages
 
I'm a Spammer: YES
MS Office Version:
Op System: Windows XP
Assumed Experience: Poor (know the very basics)
Join Date: 26th January 2003
English is 1st Language:
Location: Lincolnshire,UK
Posts: 12,877 -- Threads: 67
hello mgpco

The code that I have supplied will copy each sheet from any open Workbooks to the one running the code. You will have to set it up using the VB Editor in Excell. Click Alt F11 to open the Editor. Find the ThisWorkbook on the left of the screen. Click on it and use Insert&gt;Module Then paste the code in.

Try this example Workbook
Print [Post / Thread] Reply With Quote
Old May 17th, 2003
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
mgpco mgpco is offline
I agreed to these rules
 
I'm a Spammer:
MS Office Version:
Op System:
Assumed Experience:
Join Date: 17th May 2003
English is 1st Language:
Posts: 4 -- Threads: 2
Thanks for u're try but it's a little coplicating for me can u make it a little bit easier for me and describ it more about How i can use it ?


Regards
H.B
Print [Post / Thread] Reply With Quote
Reply Lifetime Upgrade To Ad Free Styles

   « PREVIOUS autofill a column || routine errors out also would prefer to delete instead of cl NEXT »
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +9. The time now is 07:05.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Ozgrid is Not Associated With Microsoft. Ozgrid Retains the Rights to ALL Posts and Threads