Isaac
Lifelong Learner
- Local time
- Today, 15:47
- Joined
- Mar 14, 2017
- Messages
- 9,910
First a quick explanation for why I didn't post this in the Excel forum ... Because even though it has to do with automating Excel, it's not really about Excel VBA, it's about precisely using ACCESS vba to automate an Excel application, and it's more about the inter-automation itself ... and I have a feeling the corporate wisdom that might be out there about this issue is not at all limited to Excel folks
I have Office 365 Enterprise installed on a virtual Windows server, one leased monthly from IONOS. On that server is installed Office as I mentiond and I have an Access database which does a fair amount of Excel automation. The binding is 100% late bound, createobject etc.
I should mention that this database runs continually (occasionally being stopped, restarted, etc), but generally speaking it's constantly running, going through a 'schedule' of sorts to check on whether certain 'jobs' need to be done. When it finds a job that needs doing, it fires off the core code which involves opening and closing Excel workbooks, making small edits, refreshing data connections, etc. etc.
We've had this going for about a year, but recently (with no changes made to the design), we've been getting a lot of instances where the Automation just seems to get disconnected. The errors will be my most dreaded "the remote server does not exist or is unavailable" - dreaded because the only time I've seen that in the past, from my memory, is when you try to automate Excel on a without Excel installed....Or, the code seems to "think" it is running on some other machine where Excel is not installed, even though there is only one machine in play.
So the code will be going along and come to a complete stop with this error - when I debug it is usually on a typical line where an object like wb (previously successfully set to an Excel workbook whose parent is an Excel createobject("excel.application") variable), and just sit there - err.description shows the "remote server does not exist or is unavailable", etc.
I just started happening with no design changes - any ideas?
I have Office 365 Enterprise installed on a virtual Windows server, one leased monthly from IONOS. On that server is installed Office as I mentiond and I have an Access database which does a fair amount of Excel automation. The binding is 100% late bound, createobject etc.
I should mention that this database runs continually (occasionally being stopped, restarted, etc), but generally speaking it's constantly running, going through a 'schedule' of sorts to check on whether certain 'jobs' need to be done. When it finds a job that needs doing, it fires off the core code which involves opening and closing Excel workbooks, making small edits, refreshing data connections, etc. etc.
We've had this going for about a year, but recently (with no changes made to the design), we've been getting a lot of instances where the Automation just seems to get disconnected. The errors will be my most dreaded "the remote server does not exist or is unavailable" - dreaded because the only time I've seen that in the past, from my memory, is when you try to automate Excel on a without Excel installed....Or, the code seems to "think" it is running on some other machine where Excel is not installed, even though there is only one machine in play.
So the code will be going along and come to a complete stop with this error - when I debug it is usually on a typical line where an object like wb (previously successfully set to an Excel workbook whose parent is an Excel createobject("excel.application") variable), and just sit there - err.description shows the "remote server does not exist or is unavailable", etc.
I just started happening with no design changes - any ideas?