Hi there, I have a project using Toolbar, and has being working great for such a long time.
Know i decided to make some improvements to my program, and one of the improvements is to export data on a MSFlexgrid to Excel. For that, i needed to add Microsoft Excel 12.0 Object Library.
When i run the program it appers to be a mistake on a SUB wich reads something like this:
The declaration of the procedure does not match with the description of the event or the procedure that has the same name.
The problem seams to be here:
Private Sub Barra_ButtonClick(ByVal Button As Button)
Where Barra is the name of the control Toolbar and the event is to catch the Button pressed.
The fact is, if I erase the Barra_ButtonClick Sub the Excel exporting works just fine.
Or
If i Take out the Object Library the ToolBar Event works great.
What can that be?
Please help more than apreciated!
Know i decided to make some improvements to my program, and one of the improvements is to export data on a MSFlexgrid to Excel. For that, i needed to add Microsoft Excel 12.0 Object Library.
When i run the program it appers to be a mistake on a SUB wich reads something like this:
The declaration of the procedure does not match with the description of the event or the procedure that has the same name.
The problem seams to be here:
Private Sub Barra_ButtonClick(ByVal Button As Button)
Where Barra is the name of the control Toolbar and the event is to catch the Button pressed.
The fact is, if I erase the Barra_ButtonClick Sub the Excel exporting works just fine.
Or
If i Take out the Object Library the ToolBar Event works great.
What can that be?
Please help more than apreciated!