Auto copy data

UniAmyColeman

New Member
Joined
May 16, 2018
Messages
9
Hi All

I am useless with macros etc...but I'd like to be able to do this....

I have a spreadsheet that contains a master set of data on worksheet "All Students" - simple with only 4 columns. Column D contains the name of the Progress Coach responsible for the student detailed in columns A-C.

I have created a tab for each person responsible x 10 - Caroline, Dave, Jo, Kayleigh, Lisa, Pam, Rachael, Sheridan, Stacey and Tracy.

Each tab has the same column headings
A - Surname
B - Forename
C - Pathway
D - Progress Coach

I would like the spreadsheet to be able to copy data from columns A-C to each Progress Coach named tab where their name appears in column D.

Is this achievable?

Thank you!
Amy
 

Some videos you may like

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,319
Office Version
  1. 365
Platform
  1. Windows
Do you want this to happen whenever you enter a value in col D, or do you want to decide when to run it?
 

UniAmyColeman

New Member
Joined
May 16, 2018
Messages
9
Either is fine! I don't mind if it does it when I shut the workbook via a prompt. Doesn't have to be immediate of that makes it trickier? Thank you 🙂🙂
 

shadbolt

Board Regular
Joined
Sep 20, 2007
Messages
81
The way I have done this before is on tab 2, cell a1 =a1 from tab 1. Drag to the side and down so you have a copy of the original tab. Then put a filter on that tab to only show that progress coach. Repeat for other tabs. Small issue is that its not automatic refreshing.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,319
Office Version
  1. 365
Platform
  1. Windows
Ok how about
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
   If Target.CountLarge > 1 Then Exit Sub
   If Target.Column = 4 Then
      If Evaluate("isref('" & Target.Value & "'!A1)") Then
         Intersect(Target.EntireRow, Range("A:C")).Copy Sheets(Target.Value).Range("A" & Rows.Count).End(xlUp).Offset(1)
      Else
         MsgBox "Sheet " & Target.Value & " does not exist"
      End If
   End If
End Sub
This needs to go in the All Students sheet module and will copy each row when a value in col D is changed.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,133
Messages
5,622,928
Members
415,941
Latest member
georgiana686

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
Top