Autopopulating multiple sheets from one main sheet
Closed
HayleyN
-
Updated on Nov 27, 2017 at 08:09 AM
vcoolio Posts 1411 Registration date Thursday July 24, 2014 Status Moderator Last seen September 6, 2024 - Nov 27, 2017 at 10:17 PM
vcoolio Posts 1411 Registration date Thursday July 24, 2014 Status Moderator Last seen September 6, 2024 - Nov 27, 2017 at 10:17 PM
Related:
- Autopopulating multiple sheets from one main sheet
- Google sheet right to left - Guide
- Windows network commands cheat sheet - Guide
- Little alchemy cheat sheet - Guide
- Mark sheet in excel - Guide
- How to open excel sheet in notepad++ - Guide
1 response
vcoolio
Posts
1411
Registration date
Thursday July 24, 2014
Status
Moderator
Last seen
September 6, 2024
262
Nov 27, 2017 at 10:17 PM
Nov 27, 2017 at 10:17 PM
Hello Hayley,
Following is a code that should work for you:-
The code needs to be placed in a standard module and assigned to a button.
Following is the link to a sample file for you to play with:-
http://ge.tt/2XK3gVn2
In the sample, if you click on the "UPDATE" button, you'll see that each row of relevant data for each individual in Column C will be transferred to the individual's sheet. If you change any data in any column and then click on the button again, the data in the individual's sheet will be updated/refreshed.
I hope that this helps.
Cheerio,
vcoolio.
Following is a code that should work for you:-
Option Explicit Sub TransferData() Dim ar As Variant Dim i As Integer Application.ScreenUpdating = False ar = Sheet1.Range("C2", Sheet1.Range("C" & Sheet1.Rows.Count).End(xlUp)) For i = LBound(ar) To UBound(ar) Sheets(ar(i, 1)).UsedRange.Offset(1).ClearContents With Sheet1.[A1].CurrentRegion .AutoFilter 3, ar(i, 1) .Offset(1).EntireRow.Copy Sheets(ar(i, 1)).Range("A" & Rows.Count).End(3)(2) .AutoFilter End With Next i Application.CutCopyMode = False Application.ScreenUpdating = True MsgBox "Data transfer completed!", vbExclamation, "Status" End Sub
The code needs to be placed in a standard module and assigned to a button.
Following is the link to a sample file for you to play with:-
http://ge.tt/2XK3gVn2
In the sample, if you click on the "UPDATE" button, you'll see that each row of relevant data for each individual in Column C will be transferred to the individual's sheet. If you change any data in any column and then click on the button again, the data in the individual's sheet will be updated/refreshed.
I hope that this helps.
Cheerio,
vcoolio.