简体   繁体   English

在Excel中使用ActiveX表单控件的缺点?

[英]Disadvantages of using ActiveX Form Control in Excel?

I will make an interactive checklist for work in Excel 2016. I see more possibilities of using active x controls instead of form controls. 我将为在Excel 2016中工作制作一个交互式清单。我看到使用活动x控件而不是表单控件的更多可能性。 In a form control, you can not even resize the checkbox (that you tick in). 在窗体控件中,您甚至无法调整复选框的大小(您勾选的复选框)。

Have read a lot about that it's a bad idea to use Active X in Excel and that you should use form control instead but what are the real disadvantages? 已经读了很多关于在Excel中使用Active X是一个坏主意,而应该使用表单控件,但是真正的缺点是什么呢?

I can't find any disadvantages on the link. 我在链接上找不到任何缺点。 Maybe that you must allow active x when you open the file, but I do not see that as a disadvantage. 也许在打开文件时必须允许激活x,但我认为这不是不利条件。

Active X pro's : Lots of options, Lots of events (VBA), Lots of formatting options, Lists return the selected value rather than the index number. Active X pro的功能 :很多选项,很多事件(VBA),很多格式化选项,列表返回选择的值而不是索引号。

Active x cons : Cumbersome to use one macro for multiple controls, Sometimes cause of trouble with file corruptions. Active x cons :使用一个宏进行多个控件很麻烦,有时会导致文件损坏的麻烦。

Form Control pro's : Simple to use, Can be used on chart sheets, Assigning control to a macro is simple, Little known problems. Form Control专业版 :使用简单,可以在图表表上使用,将控件分配给宏很简单,鲜为人知的问题。

Form Control con's : Lists return the index number rather than the selected value. 表单控件的缺点 :列表返回索引号而不是所选值。

Generally speaking, I recommend using the controls from the forms toolbar. 一般来说,我建议使用表单工具栏中的控件。 If you have specific needs regarding formatting which cannot be achieved using the forms controls (or if you want to program events in VBA), then you'll have to switch to the ActiveX controls (control toolbox controls). 如果您对格式有特殊的需求,而使用表单控件无法实现(或者如果您想在VBA中对事件进行编程),则必须切换到ActiveX控件(控件工具箱控件)。

taken from: http://www.jkp-ads.com/Articles/controls02.asp 摘自: http : //www.jkp-ads.com/Articles/controls02.asp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM