This should be an easy one. I want to repeat this macro until the active cell is empty. For instance, right now the macro is placing the active cell (Ref!RC[-2]) in cell "C2". Now I want this whole macro to start over and place Ref!RC[-3] in cell "C2". I would this to repeat until the active cell or blank or thru a set range, whichever option is easier.
Sub RunSave()
'
' RunSave Macro
'
'
Range("C2").Select
ActiveCell.FormulaR1C1 = "=Ref!RC[-2]"
Dim cell As Range
For Each cell In Range("T10:T44")
If UCase(cell.Value) = 1 Then
cell.EntireRow.Hidden = True
End If
Next
ThisFile = Range("C2").Value
ActiveWorkbook.SaveAs Filename:=ThisFile
Rows("1:949").Select
Selection.EntireRow.Hidden = False
End Sub
Sub RunSave()
'
' RunSave Macro
'
'
Range("C2").Select
ActiveCell.FormulaR1C1 = "=Ref!RC[-2]"
Dim cell As Range
For Each cell In Range("T10:T44")
If UCase(cell.Value) = 1 Then
cell.EntireRow.Hidden = True
End If
Next
ThisFile = Range("C2").Value
ActiveWorkbook.SaveAs Filename:=ThisFile
Rows("1:949").Select
Selection.EntireRow.Hidden = False
End Sub