I want to open a Power BI report by clicking on an Excel button. The report is on the server, so we use SharePoint and teams to get the files.
The .pbix file is also put on Teams and I don't know how to open it directly from the Excel button.
The report used to be local so I used this code to open it:
Sub cmdOpen_Click()
VBA.Shell "C:\Program Files\Microsoft Power BI Desktop\bin\PBIDesktop.exe C:\Users\nizar\Desktop\KPI.pbix"
End Sub
Now the report is on Teams.
I can open it as a link, but it will only lead me to Teams where the report is placed, but I want it to open it directly on the application.