Attaching a macro to a VB button on a form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a macro to select a row, copy it and then paste it below the
copied row. I want to attach this macro to a VB button labelled "Add Row" but
cannot work out how.
 
WildGlio said:
I have created a macro to select a row, copy it and then paste it below the
copied row. I want to attach this macro to a VB button labelled "Add Row" but
cannot work out how.

Hi,

First off you need to make a "Forms" button not a "Control" button. A macro
can not be assigned to a "Control" button. After you make the button a window
will popup to assign the macro to the button. Just pick your macro from the
list.

Regards,
Marc
 
Many thanks Marc. I had not noticed the difference between the two
Toolbarmenus. I've got that bit working - thanks again.
 

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