vbabeginner92
New Member
- Joined
- Jul 25, 2018
- Messages
- 13
I have a workbook that houses detailed metrics by project. In the front of the work is a summary tab with subsequent worksheets for the individual projects. I want to write a macro that will extract information from the individual project worksheets into the summary tab.
Example:
Row 1 Summary Worksheet - macro pulls certain information from worksheet 2 and puts in the summary worksheet
Row 2 Summary Worksheet - macro pulls same information as above but from worksheet 3 and puts in the next row in the summary worksheet
So on...until no more worksheets.
I know that I will need to use a loop. Anyone know how to write a macro will do as I describe above?
Sub UpdateData()
Dim WS_Count As Integer
Dim I As Integer
WS_Count = ActiveWorkbook.Worksheets.Count
For I = 1 To WS_Count
'Insert Data Extraction Macro
Next I
End Sub
Example:
Row 1 Summary Worksheet - macro pulls certain information from worksheet 2 and puts in the summary worksheet
Row 2 Summary Worksheet - macro pulls same information as above but from worksheet 3 and puts in the next row in the summary worksheet
So on...until no more worksheets.
I know that I will need to use a loop. Anyone know how to write a macro will do as I describe above?
Sub UpdateData()
Dim WS_Count As Integer
Dim I As Integer
WS_Count = ActiveWorkbook.Worksheets.Count
For I = 1 To WS_Count
'Insert Data Extraction Macro
Next I
End Sub