I have 3 macros that I would like to combine into one that runs sequentially. The first bit I would like to run refreshes all of the data in an excel workbook, the next two delete specific rows on a sheet. The three macros I have work individually, but I would like to combine all three so the end user can run them all at once. I think the issue I'm running into is that I incorrectly made these macros to run on specific sheets, not modules. I'm stuck on combining them, since the macros are already in different sheets.
The First Macro:
Sub Macro1()
ActiveWorkbook.RefreshAll
Sheets("ManagementDashboard").Select
End Sub
The Second Macro (Runs in the sheet named "RawDataPltzr")
Sub DeleteRows()
Last = Cells(Rows.Count, "c").End(xlUp).Row
For i = Last To 1 Step -1
'if cell value is less than 100
If (Cells(i, "c").Value) < 100 Then
'delete entire row
Cells(i, "c").EntireRow.Delete
End If
Next i
End Sub
The Third Macro (Runs in the sheet named "RawDataLoader", also the same as 2nd macro, just has to run in different sheet)
Sub DeleteRows()
Last = Cells(Rows.Count, "c").End(xlUp).Row
For i = Last To 1 Step -1
'if cell value is less than 100
If (Cells(i, "c").Value) < 100 Then
'delete entire row
Cells(i, "c").EntireRow.Delete
End If
Next i
End Sub
At the end, I want the sheet "ManagementDashboard" to be selected, like in the first macro, but I need the second and third macro to run before it does so. Any help would be appreciated!