use OnClick code

L

Leslie Isaacs

Hello All

Is it possible to include the OnClick event code of one button as part of
the OnClick event code of another button - without having to copy/paste it
all? I'm sure this should be do-able, but can't quite see how!

Hope someone can help.
Many thanks
Les
 
M

Marshall Barton

Leslie said:
Is it possible to include the OnClick event code of one button as part of
the OnClick event code of another button - without having to copy/paste it
all? I'm sure this should be do-able, but can't quite see how!


Just call the other Click event procedure like any normal
Sub. Either:
somebutton_Click
or
Call somebutton_Click()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top