sig

sig

  • NA
  • 3
  • 0

pass an arry from c# to VBA

May 13 2011 3:11 PM
Hello,

I succeeded to pass an integer from c# to VBA from a C# .NET DLL.

just changing to code like this I expected to pass an array instead of an integer value but:

C#

namespace csharp
{

class inter
{

public int passArray ( int[] xx) ....

.........


and in VBA


Dim fromCS as csharp.inter
Set fromCS = new csharp,inter

Dim i as Integer
Dim a() as Integer

i =  csharp.passArray ( a() )


of course it doesn't work, would be too simple!

Does anyone have experience with this problem?

thanks an regards from Linz/Austria

Siegfried









Answers (3)