1

How to pass an array from C# function to VBA?

Can it be done?

2

1 Answer 1

1

You need to create a COM object in C#, and then reference that COM object like you would any other COM object in VB.

Tutorial here: http://www.codeproject.com/KB/COM/com_object_in_c_.aspx

Sign up to request clarification or add additional context in comments.

2 Comments

I think the question is not about creating a COM but about passing an array from c# to VBA once you have a class successfully registered for COM interoperability.
This was a long time ago. You're a bit late to the party, aren't you?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.