Summary with data from different worksheets
Closed
Luc
-
Oct 24, 2011 at 09:52 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Contributor Last seen December 27, 2022 - Oct 25, 2011 at 10:19 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Contributor Last seen December 27, 2022 - Oct 25, 2011 at 10:19 AM
Related:
- Summary with data from different worksheets
- How to copy data from one excel sheet to another - Guide
- Tmobile data check - Guide
- Export data from excel - Guide
- Mint mobile data not working ✓ - Network Forum
- You have a workbook with multiple worksheets and want an exact copy of one of the worksheets ✓ - Excel Forum
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Contributor
Last seen
December 27, 2022
555
Oct 25, 2011 at 10:19 AM
Oct 25, 2011 at 10:19 AM
Hi Luc,
Try this code:
Best regards,
Trowa
Try this code:
Sub test()
'Change the name of "Sheet1" as your MasterSheet (MS)
Const MS As String = "Sheet1"
Dim ws As Worksheet
For Each ws In Worksheets
If ws.Name = MS Then GoTo Nxt
ws.Range("A1").Copy Destination:=Sheets(MS).Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
ws.Range("B32").Copy Destination:=Sheets(MS).Range("B" & Rows.Count).End(xlUp).Offset(1, 0)
Nxt:
Next
End Sub
Best regards,
Trowa