I'm trying to open a pbix file through a VBA code after updating an excel database. I used the following commands in VBA:
MyFile = "filepath"
Cmd = "RunDLL32.EXE shell32.dll,ShellExec_RunDLL "
Shell (Cmd & MyFile)
When I execute the code and Power BI initiates, an error message saying "Ribbon view has not been initialized" appears, and the software doesn't work properly. In order to have it working I need to close it and then open it manually.
Do you have any idea why I'm having this error? Is it the method I'm using to open the file? Do you know another way to do it?
Thanks,