tagliaboo

New Member
Joined
Oct 25, 2019
Messages
5
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
 
Then something is not installed correctly, because a line like this should appear


Code:
[COLOR=#333333]ActiveSheet.ExportAsFixedFormat[/COLOR]


And this line appears:

Code:
[COLOR=#333333]Release "C:\Users\XXX\Desktop"[/COLOR]
[COLOR=#333333]. SortOn := xlTypePDF, AutoSize :=[/COLOR][COLOR=#333333]"C:\Users\XXX\Desktop\Proposal 11.05.19.pdf", :=[/COLOR][COLOR=#333333]xlQualityStandard, := TRUE, := FALSE, := TRUE[/COLOR]
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,215,123
Messages
6,123,183
Members
449,090
Latest member
bes000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top