Hello,
Would anyone know how to make this bit of the code work ?
I use a Mac and this is to save a file as pdf in a folder in google drive...
When I run the code, there is an error message "Run-time error '-2147221014(800401es): Cannot open the specified file." And the debug highlights "ActiveWorkbook.FollowHyperlink Address:=FileName"
Any help ?
Thank you
WkP = "/Volumes/GoogleDrive/My Drive/Nas My Cloud/Global Grooves/Gigs_Commercial_Projects _Events/Costumes and Making/Packing Lists/"
FileName = Range(NameAdd) & "_" & Format(Range(DateAdd), "YYMMDD") & ".pdf"
FileName = WkP & Application.PathSeparator & FileName
ActiveSheet.PageSetup.PrintArea = Rng.Address
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, FileName:=FileName _
, Quality:=xlQualityStandard, IncludeDocProperties:=True
ActiveWorkbook.FollowHyperlink Address:=FileName
Would anyone know how to make this bit of the code work ?
I use a Mac and this is to save a file as pdf in a folder in google drive...
When I run the code, there is an error message "Run-time error '-2147221014(800401es): Cannot open the specified file." And the debug highlights "ActiveWorkbook.FollowHyperlink Address:=FileName"
Any help ?
Thank you
WkP = "/Volumes/GoogleDrive/My Drive/Nas My Cloud/Global Grooves/Gigs_Commercial_Projects _Events/Costumes and Making/Packing Lists/"
FileName = Range(NameAdd) & "_" & Format(Range(DateAdd), "YYMMDD") & ".pdf"
FileName = WkP & Application.PathSeparator & FileName
ActiveSheet.PageSetup.PrintArea = Rng.Address
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, FileName:=FileName _
, Quality:=xlQualityStandard, IncludeDocProperties:=True
ActiveWorkbook.FollowHyperlink Address:=FileName