automation - Calling VBA-Macros with user-defined Types from C#? -
i've got word document vba module contains user defined types (public type xxx) , public subs take type arguments. possible call these subs c# via application's run()?
greetings, steven
i don't know if have flexibility this, here's how solved this.
- create assembly (i called mine "xx.common")
- add structs in there, make them com-visible
- reference assembly both vba , c# projects
- add new vba sub structs arguments
you can pass in structured, user-defined data. if generalize idea, can use any com-visible type (i.e. not structs). long both projects reference assembly defines these types, should ok.
Comments
Post a Comment