excel 中vb组合框

On of my favourite Excel tricks is to show a combo box, when you click a cell that has a drop down list. The combo box can have larger font, and it autocompletes, so it’s easier for people to use.

我最喜欢的Excel技巧之一就是显示一个组合框 ,当您单击具有下拉列表的单元格时。 组合框可以具有较大的字体,并且可以自动完成,因此人们更容易使用。

There is only one ActiveX combo box on the worksheet, and it is hidden until you click on a drop down cell. When it appears, it shows the data validation list for the selected cell.

在工作表上只有一个ActiveX组合框,并且在单击下拉单元格之前它一直处于隐藏状态。 出现时,它将显示所选单元格的数据验证列表。

组合框代码 (Combo Box Code)

There is code on the worksheet, that automatically runs when you select a cell. It checks to see if the cell has a validation list. If it does, then the code gets the name of the list that is used.

工作表上有代码,当您选择一个单元格时,该代码会自动运行。 它检查该单元格是否具有验证列表。 如果是这样,那么代码将获取所使用列表的名称。

That name is added to the combo box’s ListFillRange property, so it shows the correct list for the selected cell.

该名称将添加到组合框的ListFillRange属性中,因此它将显示所选单元格的正确列表。

Excel 2013问题 (Excel 2013 Problem)

Recently, I discovered a problem with these combo boxes in Excel 2013. A client had upgraded from Excel 2010 to 2013, and the combo boxes didn’t show the lists in the new version.

最近,我在Excel 2013中发现了这些组合框的问题。客户端已从Excel 2010升级到2013,并且组合框未显示新版本中的列表。

The code wasn’t entering the list name in the combo box’s ListFillRange property. When I tried to change the property manually, I couldn’t do that either. Excel just cleared out the property, after I filled it in.

该代码未在组合框的ListFillRange属性中输入列表名称。 当我尝试手动更改属性时,我也无法执行此操作。 在我填写完属性后,Excel才清除了该属性。

创建一个新名字 (Create a New Name)

The lists were named ranges based on Excel tables. One was named ProdList, and here is its definition:

列表被命名为基于Excel表的范围。 一个名为ProdList ,其定义如下:

   =tblProducts[Product]

= tblProducts [产品]

I thought the table might be causing the problem, so I created a new name, based on the first name:

我以为该表可能是导致此问题的原因,所以我根据名字创建了一个新名称:

  1. On the Ribbon’s Formulas tab, click Define Name 在功能区的“公式”选项卡上,单击“定义名称”
  2. In the New Name window, type a one-word name -- ProdListB

    在“新名称”窗口中,键入一个单词的名称-ProdListB

  3. Click in the Refers to box, and press the F3 key 单击“引用”框中,然后按F3键
  4. In the Paste Name window, click on the table-based name -- ProdList -- and click OK

    在“粘贴名称”窗口中,单击基于表的名称-ProdList-并单击“确定”。

  5. Click OK to complete the name 单击确定完成名称

When I tested the new name in the combo box, it worked fine. Excel accepted the name without any problems.

当我在组合框中测试新名称时,它工作正常。 Excel接受该名称没有任何问题。

不要使用基于表的名称 (Don’t Use Table Based Names)

So, if you are having a problem with the ListFillRange property in Excel 2013 worksheet combo boxes, it might be caused by table-based names. Try creating another name, based on the first one, and see if that solves the problem.

因此,如果您在Excel 2013工作表组合框中的ListFillRange属性遇到问题,则可能是基于表的名称引起的。 尝试根据第一个名字创建另一个名称,看看是否可以解决问题。

You can download a sample file with a worksheet combo box, to see the names that I created, as a workaround for this problem

您可以下载一个带有工作表组合框的示例文件 ,以查看我创建的名称,以解决此问题。

NOTE: This also affects the Forms control combo boxes in Excel 2013. Both types of combo boxes work with table based names in Excel 2010, and UserForm combo boxes in both versions work with table based names.

注意:这也会影响Excel 2013中的“表单”控件组合框。两种类型的组合框都可以在Excel 2010中使用基于表的名称,并且两种版本中的UserForm组合框都可以使用基于表的名称。

记住缩放设置 (Remember the Zoom Settings)

And while we’re talking about combo box problems, remember to keep the list sheet at 100% zoom, to prevent crashes when you click on a combo box on the data entry sheet.

而且,当我们谈论组合框问题时,请记住将列表表保持在100%缩放 ,以防止在数据输入表上的组合框上单击时发生崩溃。

In the survey that I have in that blog post, 26 people said “Yes”, a combo box had crashed on them, and only 2 said “No.”

在我在该博客文章中进行的调查中,有26个人说“是”,一个组合框撞在了他们身上,只有2个人说“否”。

In the next version of Excel, we might have to stand on one leg, and wear a pointy hat, if we want combo boxes to work! But I’ll probably keep using them.

在下一个版本的Excel中,如果希望组合框可以工作,我们可能必须站起来,戴上尖尖的帽子! 但是我可能会继续使用它们。

翻译自: https://contexturesblog.com/archives/2014/09/18/worksheet-combo-box-problem-in-excel-2013/

excel 中vb组合框


http://www.taodudu.cc/news/show-2415208.html

相关文章:

  • Excel ActiveX组合框项目选择宏
  • 进阶EXCEL:开发工具的组合框
  • 如何在Excel中创建组合图
  • 实现 Excel 多列数据组合
  • excel 组合框控件使用方法
  • Excel之分类汇总,定位,组合
  • excel 中vb组合框_多列Excel组合框
  • Excel快速合并,简单方法,轻松搞定!
  • [note] 电磁场和微波课组(一)——电磁学(电学部分)
  • Google I/O 2014之Android面面观
  • 心力哲学——艰难多变环境下快乐、自由与生存力的源泉(二)
  • 有量纲和无量纲是什么意思_物理量和量纲
  • LQR,iLQR,DDP控制论经典算法(MBRL基础知识)
  • 二项式与小苹果
  • 及时复盘的好处_及时复盘,促进成长
  • 云队友丨盘点,到底盘什么?
  • 大学物理复习笔记:刚体力学基础,动量矩
  • 经典力学总结
  • 不定期备考小tips[常微][2] #20210528
  • 滴滴上市年营收超千亿,程维:我必须时刻保持危机感
  • 《WebRTC源码深入剖析》总结
  • 理论力学知识要点(八)
  • 大学物理(上)知识点总结
  • 北风的年终总结2021
  • R可视化:plot函数基础操作
  • 关于原子的电子组态、谱项和精细结构
  • 探索的乐趣(物理笔记)
  • 关于我的 “二进制部署 kubernetes 集群” 的体验
  • Unity3D 力
  • 卫星运动的微分方程

excel 中vb组合框_Excel 2013中的工作表组合框问题相关推荐

  1. excel表格下拉箭头_Excel 2013中缺少下拉箭头

    excel表格下拉箭头 Excel 2013中缺少下拉箭头 (Missing Drop Down Arrows in Excel 2013) You can create drop down list ...

  2. c++中整形输入逗号_Excel 2013中单元格添加下拉列表的方法

    使用Excel录入数据的时候我们通常使用下拉列表来限定输入的数据,这样录入数据就很少发生错误了.Excel 2013较以前的版本发生了很大的变化,那么在Excel 2013是如何添加下拉列表的呢? 下 ...

  3. navicat 只对比一张表的数据_Excel VBA批量新建工作表(对比数据透视表的使用)...

    在之前的一篇文章中,分享过用数据透视表的方法批量新建工作表. https://zhuanlan.zhihu.com/p/115191339​zhuanlan.zhihu.com 本次将用VBA的方式快 ...

  4. excel图标变成未知图标_Excel 2003中的条件格式图标

    excel图标变成未知图标 In Excel 2007, conditional formatting options include Icon Sets, such as coloured flag ...

  5. excel中用正则匹配_excel 利用正则表达式匹配工作表中的数据

    excel 利用正则表达式匹配工作表中的数据 sheet1中A列放需要匹配的数据 sheet2中A列放正则表达式,可以是多个,但至少一个 匹配到了则在sheet1中C列对应行显示相关标记内容,比如本案 ...

  6. java excel 替换_Excel根据另一个工作表中的查找替换单元格值

    无法解决这个问题,我搜索了几个小时并使用vlookup进行了测试 . 如果在Sheet2中的列A中找到P列中的值,我想更改或替换sheet1中A列中的单元格值 . 我接近我想要的但是当找不到匹配时我得 ...

  7. 计算机怎样调整工作表位置,图表布局中调整图表大小和位置及跨工作表移动——想象力电脑应用...

    通过前面四篇文章的介绍,对于Excel 2013工作簿中图表的制作应该都有了很清晰的认识和了解.对于最基本的图表元素的添加和编辑都进行了详细的介绍.但我们制作的图表没有修改过大小,且图表位置始终是在表 ...

  8. excel合并多个工作表_excel汇总多个工作表数据的神器——合并计算

    在excel中,经常会遇到多个表格的数据需要汇总,但是有时候每个表格的顺序.项目不一定完全相同,比如下图中,动图一是五个不完全相同的工作表,如何将五个工作表的数据汇总到一个工作表中(图二所示),并对这 ...

  9. update两个表中的同一字段的数据_用Python实现多个工作簿中的数据按列合并到同一个工作表中...

    1.需求描述 现在有三个工作表,如下: 在这里插入图片描述 并且每个工作表中的内容如下: 在这里插入图片描述 需要将这三个工作簿中的分数这一列合并到一起,最终实现效果如下图: 在这里插入图片描述 2. ...

  10. 用Python实现多个工作簿中的数据按列合并到同一个工作表中

    1.需求描述 现在有三个工作表,如下: 并且每个工作表中的内容如下: 需要将这三个工作簿中的分数这一列合并到一起,最终实现效果如下图: 2.实现代码 ''' 遇到问题没人解答?小编创建了一个Pytho ...

最新文章

  1. 单一nginx负载均衡+LNMP分布式架构
  2. JAVA多线程:线程创建过程以及生命周期总结
  3. c语言josn序列化和反序列化,Flutter 中 JSON 的序列化和反序列化
  4. 5.1 vim介绍 5.2-5.3 vim颜色显示和移动光标、vim一般模式下移动光标 5.4 vim 一般模式下复制剪切粘贴...
  5. 【kafka】Kafka JMX监控报错 Failed to get broker metrics for BrokerIdentity
  6. cstring和string头文件
  7. 使用ECMAScript 5严格模式提升开发效率
  8. python 回归方程及回归系数的显著性检验_回归方程及回归系数的显著性检验_stata显著性检验...
  9. 3、tiny yolov2 训练
  10. matlab程序的m语言,M语言GMSK程序求教
  11. 【LeetCode】算法初涉
  12. 零基础学习Java会不会很吃力?
  13. 修改 win 快捷键适配 macOS
  14. 零知识证明之 SnarkJS 入门
  15. cubase怎么添加midi设备_在 Cubase 中设置 MIDI 键盘的走带控制器和旋钮推子等控制器...
  16. Python3.4图片转换素描
  17. 00后女生已博士毕业,拟入职南大
  18. 基于联邦学习的多源异构数据融合算法
  19. c语言 用指针对数组元素排序
  20. Excel第3讲: 提取特定符号之间的信息

热门文章

  1. 干货 | 一步步拆解 Elasticsearch BM25 模型评分细节
  2. 怎么用计算机打游戏视频,网吧电脑可以边玩游戏边录视频吗?这样的方法很少人知道...
  3. 鹏业安装算量软件8.0.0.41 升级内容
  4. echarts 南丁格尔玫瑰图属性设置
  5. 阅读笔记4:基于运动想象的脑机接口系统模式识别算法研究
  6. python怎么搭建网站_如何用Python搭建一个网站?
  7. 常见容错机制:failfast、failsafe、failover、failback
  8. 辽宁大学计算机专科专业,2020辽宁大学计算机考研专业课调整
  9. vue jsonp跨域
  10. hdu 1212 Big Number