Hello,
I have number of sheets in excel work book. and need to consolidate all the sheets into single sheet in same workbook(last sheet). here I have using below mentioned code. but some time, No of sheets can be varied.
Sub MergeMe()
Dim i As Integer
For i = 1 To Worksheets.Count - 1
Sheets(i).[a1].CurrentRegion.Copy Sheet4.Range("IV1").End(xlToLeft)(, 2)
Next i
End Sub
So need below condition for that macro.
1. No of pages input dialogue box can open while using macro.
2. consolidation data can be stored in last sheet of workbook.
Kindly clarify for this.
Regards,
Sampath.s
I have number of sheets in excel work book. and need to consolidate all the sheets into single sheet in same workbook(last sheet). here I have using below mentioned code. but some time, No of sheets can be varied.
Sub MergeMe()
Dim i As Integer
For i = 1 To Worksheets.Count - 1
Sheets(i).[a1].CurrentRegion.Copy Sheet4.Range("IV1").End(xlToLeft)(, 2)
Next i
End Sub
So need below condition for that macro.
1. No of pages input dialogue box can open while using macro.
2. consolidation data can be stored in last sheet of workbook.
Kindly clarify for this.
Regards,
Sampath.s