macro attached to command button - VBA form

  • Thread starter Thread starter Roy Gudgeon
  • Start date Start date
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 ?
 
Try calling that macro as below

Private Sub CommandButton1_Click()
Call Macroname
End Sub
 
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

Back
Top