I have code that prints specific views to pdf using a specific fromDate and ToDate. My code started failing when I updated to ms Project 2016. Any ideas?
I've even tried removing the FromDate and ToDate and still get the error. When I add a watch to DocumentExport the Saveas dialog is displayed with the wrong filename, meaning the filename I am passing is not correct.
ViewApplyEx Name:="Gantt Employee", ApplyTo:=0 'view name
DocumentExport FileName:="C:\Schedules\test.pdf",FromDate:=printDate, ToDate:=printDateEnd
Run-time error '1004': Application-defined or object-defined error
C:\Schedules
exist already? Does your account have permission to write to it? – braX