The first macro that sorts it needs a reference in a cell that goes based on account number, which we have as F01 0001 to F01 2000 then F02 all the way to F14. Is there a way to make the cell go F01 0001 then sort then print then go F01 0002 automatically and loop the processes until it's done? I have two macros, one to sort the excel sheet by account number and one to print the page and put a pdf in a folder.
Sub Automake()
For Each r In Range("E8")
r.Value = r.Value + 1
run filter e by e:8
run produceinv
Next r
End Sub