is there any way to pass myStringArray to the RTD function?
Data = "A,B,C"
Dim myStringArray() As String `
myStringArray = Split(Data, ",")`
Application.WorksheetFunction.RTD("rtd.server.1", "", "" + URL+ "", "User", "Query", myStringArray)
Expecting the RTD server to receive "URL", "User", "Query", "A", "B", "C" as the arguments. I tried the above but it did not work.
Since
WorksheetFunction.RTD()method (https://learn.microsoft.com/en-us/office/vba/api/excel.worksheetfunction.rtd) signature (i.e.: how many parameters it is accepting and of which type), you could use a "Preprocessor", like the following:That you will use in your "main" sub as follows: