How do I embed a commandbutton from VisualBasic into Excel

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

Guest

Programming usig Macros. Would like to embed a commandbutton from VisualBasic
into Excel version 2002.
 
Hi Sidas,

Try:

ActiveSheet.OLEObjects.Add ClassType:= _
"Forms.CommandButton.1"
 

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