Requires a reference to Microsoft InfoPath. : References « Application « VBA / Excel / Access / Word





Requires a reference to Microsoft InfoPath.

 
Private Sub cmdRegisterForm_Click()
    Dim ap As New InfoPath.ExternalApplication
    ap.RegisterSolution ThisWorkbook.Path & "\manifest.xsf"
    ap.Quit
    Set ap = Nothing
End Sub

 

Related examples in the same category

1.Locating and Referencing Libraries in Code