Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50158

Workbooks.open fails when run from macro

$
0
0
Excel 2019 Windows 10

Have a large wb that takes maybe 6 seconds to unpack itself. Been running it from a macro for years under excel 2007 without much issue

Now, it randomly (but MOST of the time) simply fails to complete loading and hangs Excel when run that way (not responding, has to be force closed)

When the same file is run from the Excel file manager, no problem. opens with no errors

called with :
Workbooks.Open filespec

simple call is used, no vars, no objects.

Tried a bunch of things, all seem to fail. Funny thing is, it sometimes works, then the next day will fail again with the same code.

The workbook.open event is not firing when it fails, as I have a 'speak' line in there that would tell me it had.

Viewing all articles
Browse latest Browse all 50158

Trending Articles