Please help, I am in need of it desperately and any help is appreciated.
I am creating a summary sheet, which will bring in 5 columns from all the sheets.
The sheets may have extra columns but I am only interested in bringing in specific variables to the summary sheet from each sheet. Also, the sheet will have a column named milestone, which is of major interest, so I am only interested in data for the 5 columns for the points where the milestone is not blank.
Also, each sheet may have multiple data points, independent of number is other sheets.
The summary sheet should include all points (all milestones and relevant data for each point from sheets) and be auto-populated as each sheet is filled out by each employee.
So far, I have this but it does not seem to be working, I am very new to VBA, thanks a ton:
Sub MakeSummary()
'J stands for rows in summary2 sheet
'I stands for sheet number
Sheets("SUMMARY2").Select
'Range("A1:D60").Value = ""
J = 4
For I = 4 To Sheets.Count
A = Sheets(I).Name
If (Sheets(A).Range("A1").Value = "") Then GoTo 10
x = 3
For Each Worksheet In ThisWorkbook.Sheets
Do Until Cells(x, 1).Value <> ""
Range("A" + Format(J)).FormulaR1C1 = "='" + A + "'!R4C1"
Loop
''Do While Cells(x, 1).Value <> ""
''Range("B" + Format(J)).FormulaR1C1 = "='" + A + "'!R4C2"
''Loop
Do Until Cells(x, 1).Value <> ""
Range("B" + Format(J)).FormulaR1C1 = "='" + A + "'!R4C3"
Loop
Do Until Cells(x, 1).Value <> ""
Range("C" + Format(J)).FormulaR1C1 = "='" + A + "'!R4C4"
Loop
Next Worksheet
J = J + 1
10:
Next I
End Sub