Transfer data from 1 sheet to another with cond.
Solved/Closed
Kate.K22
Posts
2
Registration date
Saturday 17 March 2018
Status
Member
Last seen
21 March 2018
-
17 Mar 2018 à 21:31
vcoolio Posts 1411 Registration date Thursday 24 July 2014 Status Contributor Last seen 6 September 2024 - 21 Mar 2018 à 06:18
vcoolio Posts 1411 Registration date Thursday 24 July 2014 Status Contributor Last seen 6 September 2024 - 21 Mar 2018 à 06:18
Related:
- Transfer data from 1 sheet to another with cond.
- How to copy data from one excel sheet to another - Guide
- Tentacle locker 1 - Download - Adult games
- Excel move data from one sheet to another - Guide
- Igi 1 - Download - Shooters
- How to copy data to multiple worksheets in Excel - Guide
2 responses
vcoolio
Posts
1411
Registration date
Thursday 24 July 2014
Status
Contributor
Last seen
6 September 2024
262
18 Mar 2018 à 02:22
18 Mar 2018 à 02:22
Hello Kate,
Try the following code placed in the Summary sheet module:-
The code is a WorkSheet_Change event and needs to be placed in the Summary sheet module. To implement the code:-
- Right click on the Summary sheet tab.
- Select "View Code" from the menu that appears.
- In the big white field that then appears, paste the above code.
I've assumed that the "Action" column is Column I.
Every time that you select an action from the drop downs in Column I, the relevant row of data will be transferred to the relevant sheet. You must make sure that the spelling in the drop downs (inc. cases, punctuation, spaces etc.) is exactly the same as the tab spelling.
Following is the link to a little sample that I have prepared for you:-
http://ge.tt/91PBR3p2
Select an action from the drop downs in any cell in Column I then click away (or press enter or down arrow) to see the code work.
I hope that this helps.
Cheerio,
vcoolio.
Try the following code placed in the Summary sheet module:-
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
Application.EnableEvents = False
If Intersect(Target, Columns("I:I")) Is Nothing Then Exit Sub
If Target.Count > 1 Then Exit Sub
Target.EntireRow.Copy Sheets(Target.Value).Range("A" & Rows.Count).End(3)(2)
Sheets(Target.Value).Columns.AutoFit
Application.EnableEvents = True
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
The code is a WorkSheet_Change event and needs to be placed in the Summary sheet module. To implement the code:-
- Right click on the Summary sheet tab.
- Select "View Code" from the menu that appears.
- In the big white field that then appears, paste the above code.
I've assumed that the "Action" column is Column I.
Every time that you select an action from the drop downs in Column I, the relevant row of data will be transferred to the relevant sheet. You must make sure that the spelling in the drop downs (inc. cases, punctuation, spaces etc.) is exactly the same as the tab spelling.
Following is the link to a little sample that I have prepared for you:-
http://ge.tt/91PBR3p2
Select an action from the drop downs in any cell in Column I then click away (or press enter or down arrow) to see the code work.
I hope that this helps.
Cheerio,
vcoolio.
vcoolio
Posts
1411
Registration date
Thursday 24 July 2014
Status
Contributor
Last seen
6 September 2024
262
21 Mar 2018 à 06:18
21 Mar 2018 à 06:18
You're welcome Kate. I'm glad that I was able to help.
Cheerio,
vcoolio.
Cheerio,
vcoolio.
21 Mar 2018 à 06:14