ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Error 400 on executing macro first time in terminal server (https://www.excelbanter.com/excel-programming/356110-error-400-executing-macro-first-time-terminal-server.html)

[email protected]

Error 400 on executing macro first time in terminal server
 
Has know of an issue where the first time a macro is executed in a
terminal server that a 400 error occurs?

I tried adding "On Error Resume Next" but that didn't help.

The workbook works fine when used locally.

Thanks.


Tim Williams

Error 400 on executing macro first time in terminal server
 
Macro does what?
What's the text of the error?

Tim

wrote in message
oups.com...
Has know of an issue where the first time a macro is executed in a
terminal server that a 400 error occurs?

I tried adding "On Error Resume Next" but that didn't help.

The workbook works fine when used locally.

Thanks.




[email protected]

Error 400 on executing macro first time in terminal server
 

This one does it:

'user changes a selection on a worksheet dropdown

Sub SetScrollRow()
Dim drp As DropDown
Set drp = ActiveSheet.DropDowns("RHFA_DETAIL")
ActiveWindow.ScrollRow =
Sheets("Navigation").Range("rhfa_details").Offset( 1,
drp.ListIndex).Value
End Sub


Tim Williams[_4_]

Error 400 on executing macro first time in terminal server
 
And what's the text of the error message? - the number is less useful.

Tim


***********************
This one does it:


'user changes a selection on a worksheet dropdown


Sub SetScrollRow()
Dim drp As DropDown
Set drp = ActiveSheet.DropDowns("RHFA_DETAIL")
ActiveWindow.ScrollRow =
Sheets("Navigation").Range("rhfa_details").Offset( 1,
drp.ListIndex).Value
End Sub


[email protected]

Error 400 on executing macro first time in terminal server
 
There is no text.

There is 400 and an X.


[email protected]

Error 400 on executing macro first time in terminal server
 
The problem turned out to be that one of the Subs used Me as a
reference.

Also Excel wasn't configured to provide Visual Basic a trusted security
certificate.



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

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