Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to pass an array from my VBA app into managed COM
component but am getting "Type mismatch: array or user-defined type expected error" on the array name where it's being used as a parameter to the COM call. The COM method (in C#) is declared as follows: [ComVisible (true)] public void TrippleArray(ref double[] input) { /*implementation*/ } I'm trying to call it in VBA using this: Dim tester As New MyAddin3.Connect Dim inputNums(10) As Double ' load numbers into inputNums tester.TrippleArray (inputNums) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ByRef argument type mismatch when passing dictionary object | Excel Programming | |||
type mismatch error when passing collection byRef | Excel Programming | |||
Help: Compile error: type mismatch: array or user defined type expected | Excel Programming | |||
Passing Userform Listbox to sub causes type-mismatch error | Excel Programming | |||
Help - Type mismatch when running loop with strings from arrays | Excel Programming |