To edit Office documents with Microsoft Office, you must allow Microsoft Apps access to all files. To do this, proceed as follows:

  1. Open an installed Microsoft Office app (Word, Excel, PowerPoint or “Office”)
  2. Navigate to the ‘Folder’ icon at the bottom of the screen. (In the ‘Office’ app, the icon is in the upper-right corner)
  3. Select “Open” in the menu bar and click on “This device”
  4. If the required authorization has not yet been granted, a dialog will appear that takes you to “Settings”
  5. Enable “Allow access to manage all files” (the text may be slightly different depending on the Android version)
  6. You can now close the Microsoft Office app
  7. Repeat the process for all Microsoft Office apps you need

For further details see: Set device storage permissions in Office apps for Android (microsoft.com)