For excel to word I would do this;
Dim wrdApp As Word.Application
Dim wrdDoc As Word.Document
Set wrdApp = CreateObject("Word.Application")
wrdApp.Visible = False
Set wrdDoc = wrdApp.Documents.Open(Filepath)
but createobject doesnt seem to work with infopath. How can I do the same
thing for infopath as the above?
"Alexandre" wrote:
> There is no vba editor in my installation of infopath -or i cant find-. Can
> you write vba macros in infopath like in word. Note that the macros work
> correctly in excel, word and powerpoint.
>
> Thanks!
This should get you started.
This:
Dim o
Set o = Createobject("Infopath.Application")
Msgbox o.version,,"done"
works for me...
HTH,
Ed Richard
"Alexandre" <Alex...@discussions.microsoft.com> wrote in message
news:0832BF2A-EFA4-44D1...@microsoft.com...
Error 429: ActiveX component cannot create object.
I have office 2k3 installed (and infopath) and I reference infopath1.0
object type to my project. It works for word, excel and powerpoint, but not
for infopath. Any idea what could be wrong?
Brian
"Alexandre" <Alex...@discussions.microsoft.com> wrote in message
news:0A5EA374-BB91-4D41...@microsoft.com...