Open Infopath template using Excel VBA possible?

D

Dan von InfoPath

Hello,
I am attempting to open an Infopath template from inside Excel VBA.
I have added the Infopath 1.0 Reference library, but I am having some
trouble getting my code to work.
I currently have the template located in a shared folder.

I have tried using things like:
dim objXDoc;
objXDoc = Application.XDocuments.NewFromSolution("C:\\MyForm.xsn");

I've also looked into creating XDocumentsCollection variables and looked at
the "Automating Infopath" msdn article here
http://msdn.microsoft.com/library/d...s/ipsdk/html/inconAutomatingIP_HV01039915.asp

But I am not having any luck. I essentially want to open an IP template,
located on a share drive, from inside of Excel VBA. Can anyone provide me
with an example of how to do this? Thanks in advance!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top