macro attached to command button - VBA form

R

Roy Gudgeon

Hi

Can I attach a previously contrsucted Macro to a new cmd button placed on a
VBA user form ?

If so how ?
 
J

Jacob Skaria

Try calling that macro as below

Private Sub CommandButton1_Click()
Call Macroname
End Sub
 
R

Roy Gudgeon

Hi Jacon

So easy, I'llget the hang of this eventually !

Got small problem with Macro but I'll sort that
 

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