Help with some code to create an automated register summary

hofmeister

New Member
Joined
Jul 18, 2007
Messages
4
new to the forum and looking for some help,

I am trying to automate a Register to produce a summary list from a set of tabs (say 7) as follows:
i want the workbook to run a macro in the background and only activate when say i have filled out a row with data from columns A-G in one of the 7 respective tabes (the tabs can have x number of rows that i will be manually updating). This macro will recognise that i have filled out the row in the particular tab and run.

What i want the macro to complete: I want the macro to take this latest manually input data to a summary tab where it should find the last populated row and place the information one below that i.e. the next available empty row. (If possible would it work to get the macro to place the data to the same title heading as from the tab where the data is manually input i.e. the summary tab might have more columns then the tabs i manually input the data to.


I hope this makes sense and can be done. Any help would be much appreciated
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Under the assumption that your summary sheet is called “Summary”, try pasting this code into the worksheet module for each worksheet in the workbook where you will be entering your data.:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Limit As Long
If WorksheetFunction.CountBlank(Range("A" & Target.Row & ":G" & Target.Row)) = 0 Then
    Limit = Worksheets("Summary").Cells(Rows.Count, 1).End(xlUp).Row + 1
    Worksheets("Summary").Range("A" & Limit & ":G" & Limit).Value = Range("A" & Target.Row & ":G" & Target.Row).Value
    Worksheets("Summary").Cells(Limit, 8) = ActiveSheet.Name
End If
End Sub
 
Upvote 0
Cheers lewiy, much appreciated,

just incorporating your script, its working a treat. might have a couple of additions to ask you if i can't figure them out myself.
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,438
Members
449,083
Latest member
Ava19

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