Moving from Windows 10 to Apple MAC. Code help please

EddyStone

New Member
Joined
Jun 7, 2007
Messages
15
Help with macro please.

The Sub below works fine with Excel using Windows 10 however I am migrating to Excel in MAC. When I run the macro I get an Error while Printing message. If I go to DEBUG and change the path to “DATA1\DATA\DROPBOX\BUSINESS\PDF_INVOICE" I still get an error but this time the row.
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False.
Is highlighted in yellow. Not sure how to fix all help really appreciated



Sub PDFSAVE()

Dim FName As String
With ActiveSheet
FName = .Range("E13").Value & .Range("I6").Value
.ExportAsFixedFormat Type:=xlTypePDF, FileName:= _
"E:\DATA\DROPBOX\BUSINESS\PDF_INVOICE" & FName, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
End With
SaveSheet
End Sub
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
If anyone has any suggestions this is what I want to do on the MAC

-------


Select RangeA2 to I44
Use the filename that’s in Cell H10
Save as PDF to Path DATA1\DATA\DROPBOX\\BUSINESS\PDFINVOICE Filename as in Cell H10)
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,614
Members
449,091
Latest member
gaurav_7829

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