I have the following code:
Sub CallVSTOMethod()
Dim addin As COMAddIns
Dim automationObject As Object
Set addin = Application.COMAddIns("CssFillTool")
Set automationObject = addin.Item
automationObject.ButtonClearRemarks
End Sub
I am trying to find out why i am getting this error.
ButtonClearRemarks is one of many macros in the addin. when i click that macro seperately it works properly.
This macro does not require any argument. This on clicking will format my excelsheet. I tried passing empty arguments and other options as well, but no use. any suggestions are welcome.
After few corrections :
Set addin = Application.COMAddIns
Set automationObject = addin.Item("CssFillTool")
now i just need to access the macroButtonClearRemarks
within this Add-ins