Are you using quick office on your phone or Microsoft office?
Have you recently updated the app? If you updated the app try reverting back to the older version and see if that helps. Heck try an older version anyhow and Sewer if it helps. Software on your phone doesn't randomly change. It requires user input unless you selected automatic updates. Or goggles magic kill button to remove harmful apps.