I need help with VBA for deleting sheets that do not have certain characters (based on cell values in a column A) and do not equal to sheet name "IWF Extract", and then saving them based on those cell values as well.
Hoping that i can loop through all of the cell values within the column A
Thank you in advance
I have this for save as loop
Sub SaveAsLoop()
Dim wkb As Workbook
Dim mp As String, fp As String, mfn As String, en As String, strName As String
Dim cRng As Range, c As Range
Dim ws As Worksheet
Set cRng = Sheets("ORG").Range("A2:A" & Sheets("ORG").Range("A" & Rows.Count).End(xlUp).Row)
mp = "C:\Users\oey\Documents\Kris Oey\04 JAN FY24\"
fp = "C:\Users\oey\Documents\Kris Oey\FY24\"
mfn = "IWF - "
en = ".xlsm"
ws
Set wkb = Workbooks.Open(mp & "\Projects_WA_Summary_FY24 (TEST).xlsm")
For Each c In cRng
strName = c.Value
wkb.SaveCopyAs (fp & mfn & strName & en)
Next c
End Sub

Microsoft documentation: