Hi
I am using Excel 97, I have written code to add a tool bar and add a button, at run time, these open up just fine at startup. But I don't know how to link the button to run a "sub" function in my code at run time.
I can do it manually by right clicking on the button, selecting custimise, right click on button again, select assign macro, then choose macro from the list.
But I want all of the above paragragh to be done in the code.
Can anybody give me some ideas.
Thanks
Kelvin
I am using Excel 97, I have written code to add a tool bar and add a button, at run time, these open up just fine at startup. But I don't know how to link the button to run a "sub" function in my code at run time.
I can do it manually by right clicking on the button, selecting custimise, right click on button again, select assign macro, then choose macro from the list.
But I want all of the above paragragh to be done in the code.
Can anybody give me some ideas.
Thanks
Kelvin