Using VBA in Excel 2010 I could open a PowerPoint file on SharePoint by passing the URL location of the file. If I wasn't logged in it would prompt me for my credentials so it could open it.
However, in Excel 2016, while I get the prompt for opening Excel files on SharePoint, I don't get the prompt when opening PowerPoint files. Instead I just get a Run-time error '-2147467259 (80004005)' meaning not authenticated. If I log into SharePoint first then run the macro it opens, but I don't want that. Any suggestions on how I can bring the prompt back for PowerPoint?
Sub OpenPowerPointFile()
Dim objPPT As PowerPoint.Application
Dim objPres As Object
Set objPPT = CreateObject("Powerpoint.Application")
objPPT.Visible = True
Set objPres = objPPT.Presentations.Open("https://spsite.com/report_template.pptx")
End Sub