I have an excel file with several macro that work fine on multiple computers. I have a new employee that just started and the macros do not work for him. He gets a runtime error -2147417848 (80010108). The specific macro is for creating a PDF is that matters. Not sure if it a setting in excel or version issue. Not the code since it works for everyone else.
Sub MO()
'
' MO Macro
'
Sheets("TC").Visible = True
Sheets("MO").Activate
ThisWorkbook.Sheets(Array("MO", "TC")).Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
ThisWorkbook.Path & "" & ActiveSheet.Range("D11").Value & " Material Only ACM Proposal" & Format(Date, " MMDDYY") & ".pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
Sheets("FO").Activate
Range("A1").Select
Sheets("TC").Visible = False
Sheets("ACM").Select
Range("B1").Select
End Sub
Sub MO()
'
' MO Macro
'
Sheets("TC").Visible = True
Sheets("MO").Activate
ThisWorkbook.Sheets(Array("MO", "TC")).Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
ThisWorkbook.Path & "" & ActiveSheet.Range("D11").Value & " Material Only ACM Proposal" & Format(Date, " MMDDYY") & ".pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
Sheets("FO").Activate
Range("A1").Select
Sheets("TC").Visible = False
Sheets("ACM").Select
Range("B1").Select
End Sub