Automatically Syncing Data from my master sheet to Individual Sh
Closed
saral.saraf
Posts
1
Registration date
Tuesday 5 May 2015
Status
Member
Last seen
5 May 2015
-
5 May 2015 à 12:33
vcoolio Posts 1411 Registration date Thursday 24 July 2014 Status Contributor Last seen 6 September 2024 - 6 May 2015 à 05:08
vcoolio Posts 1411 Registration date Thursday 24 July 2014 Status Contributor Last seen 6 September 2024 - 6 May 2015 à 05:08
Related:
- Automatically Syncing Data from my master sheet to Individual Sh
- How to copy data from one excel sheet to another - Guide
- Master royale - Download - Strategy
- Excel move data from one sheet to another - Guide
- How to copy data to multiple worksheets in Excel - Guide
- Download automatically while roaming - Guide
1 response
vcoolio
Posts
1411
Registration date
Thursday 24 July 2014
Status
Contributor
Last seen
6 September 2024
262
6 May 2015 à 05:08
6 May 2015 à 05:08
Hello Saral,
The following code should do the job for you:-
You can have a look at my test work book here:-
https://www.dropbox.com/s/eanhaab28tt54vo/SaralSaraf.xlsm?dl=0
to see how it works.
I have placed fictitious names in Column A and the sheet tabs rather than just letters.
The code also deletes all data from the Master Sheet once the data is transferred to each individual sheet.
Cheerio,
vcoolio.
The following code should do the job for you:-
Sub TransferData()
Application.ScreenUpdating = False
Dim lRow As Long
Dim MySheet As String
lRow = Range("A" & Rows.Count).End(xlUp).Row
For Each cell In Range("A2:A" & lRow)
MySheet = cell.Value
cell.EntireRow.Copy Sheets(MySheet).Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
Next cell
Sheets("Master").Range("A2:K" & Rows.Count).ClearContents
MsgBox "Data transfer completed!", vbExclamation
Application.ScreenUpdating = True
End Sub
You can have a look at my test work book here:-
https://www.dropbox.com/s/eanhaab28tt54vo/SaralSaraf.xlsm?dl=0
to see how it works.
I have placed fictitious names in Column A and the sheet tabs rather than just letters.
The code also deletes all data from the Master Sheet once the data is transferred to each individual sheet.
Cheerio,
vcoolio.
