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
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Do you want this to happen whenever you enter a value in col D, or do you want to decide when to run it?
 
Upvote 0
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 ??
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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