Data from one master sheet to 100 other sheet
Closed
anakonda93
Posts
2
Registration date
Thursday 3 May 2018
Status
Member
Last seen
4 May 2018
-
3 May 2018 à 07:47
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 7 May 2018 à 11:01
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 7 May 2018 à 11:01
Related:
- Data from one master sheet to 100 other sheet
- How to copy data from one excel sheet to another - Guide
- Excel move data from one sheet to another - Guide
- Little alchemy cheat sheet - Guide
- How to copy data to multiple worksheets in Excel - Guide
- Excel hyperlink to another sheet - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
3 May 2018 à 10:51
3 May 2018 à 10:51
Hi Anakonda,
Give the following code a try:
Will this work for you?
Best regards,
Trowa
Give the following code a try:
Sub RunMe()
Dim xRow, xSheet As Integer
Sheets("Master").Select
xRow = 1
xSheet = 1
Do
Range(Cells(xRow, "A"), Cells(xRow + 11, "A")).Copy Sheets("Sheet " & xSheet).Range("A1")
xRow = xRow + 12
xSheet = xSheet + 1
Loop Until Range("A" & xRow) = vbNullString Or xSheet = 101
End Sub
Will this work for you?
Best regards,
Trowa
4 May 2018 à 02:00
Thank you for quick answer, I tried your code but it only copied first 12 rows from A column of master sheet to all other sheets.
Best regards,
Anakonda
4 May 2018 à 16:09
7 May 2018 à 11:01
Variable xRow = 1 and xSheet = 1
Then from column A, rows 1 (=xRow) to 12 (=xRow+11) are copied to sheet 1 (=xSheet).
Adjust variable xRow = 1 + 12 = 13 and xSheet =1 +1 =2
Next loop
Then from column A, rows 13 (=xRow) to 24 (=xRow+11) are copied to sheet 2 (=xSheet).
...
Do you maybe mean you don't want the 12 copied cells placed in A1:A12 of the numbered sheets?
Best regards,
Trowa