Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-03-15
4
Medium Priority
?
1,873 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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes a serious pitfall that can happen when deleting shapes using VBA.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

886 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