Call user defined word vba function from C#

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • AP

    #1

    Call user defined word vba function from C#

    Hi,

    If I have created a word template that has a VBA function that I defined in
    it, is there anyway I can call this function from C#?

    Adam



  • AP

    #2
    Re: Call user defined word vba function from C#

    I found that I could do it using the word object library Application.Run
    method, however this only works with no parameters. When I try and pass a
    parameter I get a COM Exception that says Member Not Found. How can I fix
    this?

    Thanks,

    Adam

    "AP" <adamp@indra.co m> wrote in message
    news:eT97$WmnDH A.2500@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Hi,
    >
    > If I have created a word template that has a VBA function that I defined[/color]
    in[color=blue]
    > it, is there anyway I can call this function from C#?
    >
    > Adam
    >
    >
    >[/color]


    Comment

    Working...