Hi ,
Can any one help me out with problem below :
By Using VBA I have opened InfoPath and now I want to use menu buttons using CommandBar.
Below code is giving me error "Object dostnot support this property or Method.". So can any one help me which object will help me in retrieving menu buttons from InfoPath.And which methods and properties I can use.
Set objExcel = CreateObject("InfoPath.Application")
objExcel.XDocuments.NewFromSolution ("C:\Users\centraluser\Desktop\sahil1.xsn")
For i =1 to objExcel.CommandBars.Count
Msgbox objExcel.CommandBars(i).name
Next