Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Excel- Difference between Command Button (Active X Control) and Button (Form Control)

Posted on 2011-03-15
4
1,547 Views
Last Modified: 2012-05-11

I'm working on a few macros in Excel and am using a button to execute them.  Can anyone tell me the difference between using a Command Button (Active X Control) and a Button (Form Control)?
0
Comment
Question by:BBlu
  • 2
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
jkpieterse earned 125 total points
ID: 35145835
The forms buttons are simpler to use and more reliable. The ActiveX one has more formatting options. Also, the click event of a forms button can be any macro located in a normal module, an ActiveX button requires its click event to be in the worksheets module (or in a class module).
It is easy to tie multiple forms buttons to the same macro, you just assign them all to the same. With activex buttons, either each button has its own click event, or you need to write a class module and tie an instance of the class to all buttons.
0
 

Author Comment

by:BBlu
ID: 35151998

Thank you, jkpieterse, for the thorough explanation.  I assume it's safe to say that, when possible, it's better to use form buttons.  Would you say that is true?
0
 
LVL 11

Expert Comment

by:jkpieterse
ID: 35153982
I would, yes. Others may have different opinions!
0
 

Author Closing Comment

by:BBlu
ID: 35249965
Thanks, again.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question