Solved

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

Posted on 2011-03-15
4
1,702 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
[X]
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
  • 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

627 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