deardhanya1
New Member
Please help to Copy the data from multiple sheet having same ranges to single sheet with links to their individual base, so that can do the changes in Individual sheets and autoupdate to Summary Sheet. thanks
Sub DataConsolidation()
Application.ScreenUpdating = False
Dim iCurWS As Integer
Dim WS As Worksheet
Dim i As Long
'Loop through worksheets from summary1 to end
'Number 5 corresponds to "Summary-1" where the data consolidation should start from
For iCurWS = 5 To Worksheets.Count
Set WS = Sheets(iCurWS)
WS.Range("A2:AC" & WS.Range("A" & Rows.Count).End(xlUp).Row).Copy
Worksheets("Consolidation-Sheet_new").Activate
Range("A" & Worksheets("Consolidation-Sheet_new").Range("A" & Rows.Count).End(xlUp).Row + 1).Select
Selection.PasteSpecial Paste:=xlPasteValues, _
Operation:=xlNone, _
SkipBlanks:=False, _
Transpose:=False
Next iCurWS
'Remove the total payable, total paid and total variance data
For i = 2 To Worksheets("Consolidation-Sheet_new").Range("A" & Rows.Count).End(xlUp).Row + 1
If Worksheets("Consolidation-Sheet_new").Range("A" & (i)).Value = "" Then
Worksheets("Consolidation-Sheet_new").Range("A" & (i)).EntireRow.Delete
End If
Next
Application.ScreenUpdating = True
End Sub