Hello, im trying to figure out a way to SAVE AS in my current program but when I do, I always get filename as my SAVE AS but I want to SAVE AS my current file name. Any help would be appreciated.
If WorksheetFunction.CountA(Range("J10:J33")) > 0 Then
ChDir "C:\Users\Joseph\Desktop\Food Maxx Test\401"
ActiveWorkbook.SaveAs Filename:= _
"C:\Users\Joseph\Desktop\Food Maxx Test\401\FileName.xls", FileFormat:=xlExcel8, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
End If
If WorksheetFunction.CountA(Range("J10:J33")) > 0 Then
ChDir "C:\Users\Joseph\Desktop\Food Maxx Test\401"
ActiveWorkbook.SaveAs Filename:= _
"C:\Users\Joseph\Desktop\Food Maxx Test\401\FileName.xls", FileFormat:=xlExcel8, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
End If