Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I had the same problem. For me, the solution was to install the local MS 365 App instead of using the web browser version. Once I installed MS Office 365 locally on my PC, it worked as described above by @cybernetic.nomad .