Autopopulating multiple sheets from one main sheet
Solved/Closed
Mikey
-
Updated on Jan 29, 2019 at 03:54 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Oct 5, 2017 at 11:35 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Oct 5, 2017 at 11:35 AM
Related:
- How to automatically update one excel worksheet from another sheet
- Transfer data from one excel worksheet to another automatically - Guide
- How to open excel sheet in notepad++ - Guide
- Mark sheet in excel - Guide
- How to screenshot excel sheet - Guide
- How to automatically transfer data between sheets in Excel - Guide
14 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Updated on Jan 29, 2019 at 03:56 AM
Updated on Jan 29, 2019 at 03:56 AM
Hi Michael,
For the code below I created 2 sector's "General" and "1ste Group". Adjust and add to the code to suit your needs:
To implement the code:
Tip: Have you considered drop-down lists for column H?
Let me know if you get stuck somewhere.
Best regards,
Trowa
For the code below I created 2 sector's "General" and "1ste Group". Adjust and add to the code to suit your needs:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("H:H")) Is Nothing Then Exit Sub
If Target.Value = "General" Then
Range(Range("C" & Target.Row), Range("H" & Target.Row)).Copy _
Sheets("General").Range("C" & Rows.Count).End(xlUp).Offset(1, 0)
ElseIf Target.Value = "1ste Group" Then
Range(Range("C" & Target.Row), Range("H" & Target.Row)).Copy _
Sheets("1ste Group").Range("C" & Rows.Count).End(xlUp).Offset(1, 0)
End If
End Sub
To implement the code:
- Right-click on the "Account" tab and select View code.
- Paste the code in the big white field.
Tip: Have you considered drop-down lists for column H?
Let me know if you get stuck somewhere.
Best regards,
Trowa
Apr 26, 2016 at 09:56 AM
Thanks for your code.
I used the code segment successfully,. But, on reopening the file after saving with macro enabled, the code does not seem to run!
What should I do?
Davis
Apr 26, 2016 at 11:38 AM
That is strange, saving your file shouldn't alter the way the code works in any way.
I wouldn't mind taking a look at your file to see what is going on.
Use a free file sharing site like www.speedyshare.com or ge.tt to upload your file and then post back the download link. Always be careful with sensitive information.
I'll get back to you next week, though.
Best regards,
Trowa
Apr 27, 2016 at 07:28 AM
Problem solved.
I had to "Enable Content" Then it is working beautifully.
Sorry for the trouble.
Thanks
Davis