multiple books with multiple sheets into one

goldcat

Board Regular
Joined
Jun 26, 2002
Messages
160
I am trying to track sales metrics over monthly, quarterly and yearly periods.
I have put together a workbook that contains 32 sheets 1 for each day and a total page for printing.

What I would like to know is there a way to combine all the monthly books into a quarterly and then the quarterly into a yearly

Thank you in advance for any direction
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
@
goldcat
Hope you want something like this:
Code:
Private Sub cmdCopydatafromWkBk1toWkbk2_Click()
 Dim SrcWkBk As Workbook
 Dim DestWkBk As Workbook
 Dim SrcFylsPath As String
 Dim DestFylsPath As String
 Dim SrcWBkName As String
 Dim DestWBkName As String
 SrcFylsPath = "D:\"
 SrcWBkName = "SrcData.xlsx"
 DestFylsPath = "D:\"
 DestWBkName = "DestData.xlsx"
 Workbooks.Open SrcFylsPath & SrcWBkName
 Workbooks.Open DestFylsPath & DestWBkName
 Set SrcWkBk = Workbooks(SrcWBkName)
 Set DestWkBk = Workbooks(DestWBkName)
 Dim rng As Range, FiltRng As Range
 Dim wsSrc As Worksheet, wsDest As Worksheet
 Dim SrcLastRow As Long, DestLastRow As Long
 Set wsSrc = SrcWkBk.Worksheets("SalesJan")
 Set wsDest = DestWkBk.Worksheets("QlySalesData")
  SrcLastRow = wsSrc.Cells(wsSrc.Rows.Count, "A").End(xlUp).Row
  Set rng = wsSrc.Range("A2:Q" & SrcLastRow)
  DestLastRow = wsDest.Cells(wsDest.Rows.Count, "A").End(xlUp).Offset(1).Row
    rng.Copy wsDest.Cells(DestLastRow, "A")
 DestWkBk.Close SaveChanges:=True
End Sub
I will suggest you (and I hope that the experts who reply in Excel Forums will also suggest) that you should spend some time in searching for excel tutorials based on your needs.
That will increase your Excel expertise.
Simply if you need a code for your present need, and if you get it, your problem may be solved, but you will still be in need of more suggestions from experts.
Normally, what you have achieved so far should be posted, which I see a common practice in the Excel Forums that I look into.
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top