Automatic copying

FredHanniffy

New Member
Joined
Aug 15, 2010
Messages
3
I record data in separate monthly worksheets and would like that same data copied automatically as the data is entered into a 'yearly' worksheet to give me cumulative data. Any help much appreciated
 
Last edited:

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi

it seems you are trying to copy all the monthly worksheets on Yearly sheet in workbook
Try
Code:
Sub test1()
Dim i As Integer
Dim ws As String
Sheets("yearly").Select
Worksheets(Worksheets.Count).Activate
For i = 1 To Worksheets.Count
Sheets(i).UsedRange.Offset(1).Resize(ActiveSheet.UsedRange.Rows.Count - 1).Copy Destination:=Sheets("yearly").Range("A" & Rows.Count).End(xlUp).Offset(1)
Next i
ws = Worksheets(Worksheets.Count).Name
Sheets("yearly").Rows(1).Value = Sheets(ws).Rows(1).Value
End Sub
 
Upvote 0
Thanks for the response. I may have not explained thoroughly.
As I enter the data into a monthly worksheet I would like that same data to automatically be entered into corresponding cells in the yearly worksheet. I am not very learned in excel.
 
Upvote 0

Forum statistics

Threads
1,224,582
Messages
6,179,670
Members
452,936
Latest member
anamikabhargaw

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