My problem is, I want to send an array of strings from VBA to WCF.
c# code is :
[OperationContract]
void SetSomeObjects(string[] data);
Here is the VBA Part
Dim data(2) As String
data(0) = "abc"
data(1) = "def"
Dim service2 As Object
Set service2 = GetObject(ServiceBindingInformation)
service2.SetSomeObjects data
The last line throws VBA
"Type Mismatch Error"
I have no idea why is this happening. Please suggest a way to send array data from VBA to WCF Service If I used object as the argument type, it gives error as shown in the attached screenshot