Petar Willhite
New Member
So I am trying to take the active sheet and save it to its own file when I run the following macro. Not sure why it is not running. I appreciate any help.
Thanks,
Petar
Thanks,
Petar
Code:
Application.ScreenUpdating = False
ActiveSheet.Range("$A$4:$AG$2001").AutoFilter Field:=4, Criteria1:= _
"=01-Mechanical Engineer"
With Worksheets("PC2 Billed IMPORT")
Projectname = Cells(2, 2).Value
End With
ActiveSheet.SaveCopyAs ("\\C:\Users\petar.willhite\Desktop\DisciplineForecastFiles\" & "FC ME - " & Projectname & ".xlsm"), _
FileFormat:=xlOpenXMLWorkbookMacroEnabled, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveSheet.Range("$A$4:$AG$2001").AutoFilter Field:=4
Application.ScreenUpdating = True
Last edited by a moderator: