Hi dear community
I have a question please.
I want to open a Power BI report by clicking on an Excel button, but the problem is that 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
But now the report is on Teams, please Help.
PS: 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.
CodePudding user response:
A Teams folder is actually a Sharepoint folder in disguise:
So you should be able to browse to the folder that contains your file in Teams, and then using the menu you should be able to select "Open In Sharepoint":
From there, you would use the normal methods of converting a Sharepoint address into a file location.
For example:
https://yoursite.sharepoint.com/sites/sitename/document_library/subfolder/test.pdf
Would become:
\\yoursite.sharepoint.com@ssl\sites\sitename\document_library\subfolder\test.pdf