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()
 
Top