hi
on the toolbox toolbar, chick design mode. the icon looks like a protractor
with ruller and pencil. in design mode right click the button. from the
popup, click view code. add this......
Private Sub CommandButton1_Click()
call DATASORT
End Sub
close the
vb window.
if you need to relocate or resize the button, do so now.
click design mode icon again to exit design mode.
done. button is live.
Regards
FSt1
"Tdahlman" wrote:
I have created a macro using the Macro Recorder.
I have a command button and I want to run the macro (which is names
DATASORT) when I click the button.
Please advise how to make this work.
Thanks in advance,
Travis