Hey friends,
What am I doing wrong? Losing it over here...
The code errors out on the last line. Any help or suggestions are appreciated.
-rilzniak
What am I doing wrong? Losing it over here...
VBA Code:
Dim PPT As PowerPoint.Application
Dim PP_File As PowerPoint.Presentation
Dim PPT_Path As String
If Not Application.OperatingSystem Like "*Mac*" Then
PPT_Path = "C:\Users\" & Environ("username") & "\Desktop\MSICP-IFA-Branded-Template - FOR AUTOMATION.pptx"
Else
PPT_Path = "Macintosh HD/Users/" & Environ("USER") & "/Desktop/MSICP-IFA-Branded-Template - FOR AUTOMATION.pptx"
End If
Set PPT = New PowerPoint.Application
Set PP_File = PPT.Presentations.Open(Filename:=PPT_Path, ReadOnly:=msoFalse)
The code errors out on the last line. Any help or suggestions are appreciated.
-rilzniak