I have an interesting issue where I am trying to have a looprange in effect and before looping to the next data point it will save a copy of the worksheet. Does anyone have any experience, when I try to make the changes it causes issues with my Next statement at the bottom of the code.
''' Sub Excel1()
Dim rngLoopRange As Range Dim wsSummary As Worksheet Dim rngDealers As Worksheet
Set wsSummary = Sheets("PL")
For Each rngLoopRange In Worksheets("AUX").Range("A1:A38") wsSummary.Range("C12").Value = rngLoopRange.Value
Application.Run "TM1REFRESH"
Dim wb As Workbook
Set wb = Workbooks.Add
wb.SaveAs ThisWorkbook.Path & "\" & Range("C12")
ws.Copy before = wb.Worksheets(1)
Next rngLoopRange
Set wsSummary = Nothing
MsgBox "Complete!", vbInformation
End Sub '''