After years of programming in most of the Microsoft Office suite applications, this morning I was hit by an anomaly.
The VBE will not show the code, any existing code. I can write code but once saved and reopened it all vanishes. This happens with all Office files (Word, Excel, Access etc.). The modules appear the the VBE tree, but when opening one, the VBE remains blank as if a module was never opened. The code however does exist as it runs as expected and when a module is exported the bas file contains all the code. Yet for some reason the code is not shown in the VBE.
On other computers everything works, so the problem is not with the files but rather with the computer\ Office installation. Rebooted Windows, re-installed Office, yet problem persists.
Searching online it seems that a handful of users experienced the same issue but I couldn't find a solution.
Ideas are welcome and your help is greatly appreciated.
EDIT: If I search for a function only that function will be shown.
What happens if you run VB application in compatible mode to use a lower version of Windows ?