ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel error when called from vb script (https://www.excelbanter.com/excel-programming/349741-excel-error-when-called-vbulletin-script.html)

Paul Davidson

Excel error when called from vb script
 
I have a script that is run both locally and via remote desktop
and accesses an xls file. The access is pretty simple.
It finds a row and adds some text to various cells.

We have no problems when run locally.

However, when run via Remote Desktop, (and we believe when and
only when the remote desktop is minimized or not active on any other desktop)
we get an error msg:
"Not enough system resources to display completely."

The failure is occuring somewhere in these lines:

objDE_Excel.DisplayAlerts = vbFalse
objDE_Excel.Save
objDE_Excel.DisplayAlerts = vbTrue

I'm 90% sure it's failing on the first line, the DisplayAlerts = vbFalse.

I'm using this function because this is a shared workbook and without it,
we continually get a SaveAs dialog box which requires interaction.
Script needs to run automatically.

Any ideas ?

--
TIA
Paul Davidson



All times are GMT +1. The time now is 05:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com