I have a file that was uses a common Userform for list selections. If I open the file by going to the folder where it resides and double-click on the file name to open the file, the Userform code throws runtime error 91 when it reaches a line of code involving the ListBox on the form. The debugger shows the ListBox as 'Nothing' when I put it in the watch window. However, if I open the exact same file from the Excel recent history, it works as intended.
The errors only occur on a computer running Office 365. If I run the exact same code on a computer running Excel 2013, it runs as intended regardless of how I open the file.
What is going on and how do I get the correct behavior by double-clicking the file name?
Bookmarks