Hello Guys i have this simple script where i apply a chart template on 2 Charts in my Spreadsheet. Obviously this works great under Windows 10, Mac Office 2011 but not on Mac Office 2015.
Im gettin an Error, Runtime Error 70 - Permission Denied Both Files are located in the Same folder, and the Names are correct.
Sub Makro_Setup()
'
' Makro_Setup Makro
'
' Tastenkombination: Strg+Umschalt+B
'
Worksheets("Auswertung").Activate
Dim path As String
Dim TheOS As String
TheOS = Application.OperatingSystem
If MAC_OFFICE_VERSION >= 15 Then
MsgBox "Not Good"
Else
MsgBox "Good"
End If
path = ActiveWorkbook.path + "/Diagramm1.crtx"
MsgBox TheOS
MsgBox path
ActiveSheet.ChartObjects("Diagramm 2").Activate
ActiveChart.PlotArea.Select
' Here comes the error 70 -START
ActiveChart.ApplyChartTemplate path
' Here comes the error 70 -END
ActiveSheet.ChartObjects("Diagramm 5").Activate
ActiveChart.PlotArea.Select
ActiveChart.ApplyChartTemplate path
End Sub
Maybe Somebody can help me with this :(
Ps.: the path ist correct: /users/....
Best Regards Machete