excel 中vb组合框

Instead of selecting a product code in an Excel drop down list, it's usually easier to select a product name instead. However, your pricing calculations might use the product code, instead of the product name, so you need that information.

与其在Excel下拉列表中选择产品代码,通常不如选择一个产品名称。 但是,您的定价计算可能会使用产品代码而不是产品名称,因此您需要该信息。

With a bit of programming in Excel, you can show a description in a combo box, but enter the matching code for the selected item into the cell. You've seen other versions of my data validation combo box code:

通过Excel中的一些编程,您可以在组合框中显示说明,但是将所选项目的匹配代码输入到单元格中。 您已经看到了我的数据验证组合框代码的其他版本:

  • Double-click on data validation cell to open combo box

    双击数据验证单元格以打开组合框

  • Click on data validation cell to open combo box

    单击数据验证单元格以打开组合框

  • Use named lists with data validation combo box

    将命名列表与数据验证组合框一起使用

Keep reading, to see how the new combo box codes example works.

继续阅读,以了解新的组合框代码示例如何工作。

从组合框中选择 (Select From a Combo Box)

I've uploaded a new sample file on the Contextures website, which lets you select a month name, or weekday name, from an Excel combo box.

我已经在Contextures网站上上传了一个新的示例文件,该文件可让您从Excel组合框中选择月份名称或工作日名称。

When you leave the combo box, the month number, or weekday code is automatically entered in the cell, instead of the full description.

当您离开组合框时,单元格中会自动输入月号或工作日代码,而不是完整的说明。

命名范围 (The Named Ranges)

In the data validation cells, lists are allowed, and they refer to the named ranges – DayList and MonthList – where the short codes are stored.

在数据验证单元格中,允许使用列表,它们引用存储短代码的命名范围– DayList和MonthList。

Another range is created for each list, to include the description column, and these names end with "Codes" – DayListCodes and MonthListCodes.

为每个列表创建另一个范围,以包括描述列,并且这些名称以“代码”结尾– DayListCodes和MonthListCodes。

These "Codes" ranges are used to fill the combo box, which is formatted with 2 columns. The first column has a width of zero, so the codes aren't visible.

这些“代码”范围用于填充组合框,该组合框的格式为2列。 第一列的宽度为零,因此看不到代码。

下载样本文件 (Download the Sample File)

To test the combo box codes example, and see how it works, you can download the sample file from the Contextures website.

若要测试组合框代码示例,并查看其工作方式,可以从Contextures网站下载示例文件。

In the Data Validation section look for DV0057 – Data Validation Combobox Codes.

在“数据验证”部分中查找“ DV0057 –数据验证组合框代码” 。

The file is in Excel 2007/2010 format, and contains macros. ______________________

该文件为Excel 2007/2010格式,包含宏。 ______________________

翻译自: https://contexturesblog.com/archives/2012/05/03/excel-data-validation-combo-box-codes/

excel 中vb组合框


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

相关文章:

  • excel 表做下拉框_Excel工作表的组合框下拉列表
  • video的基本使用
  • UniApp video 使用
  • 如何在vue项目中引入video.js插件
  • HTML5 video循环播放多个视频
  • <video>标签及属性说明
  • 51单片机的LCD12864电子秤设计
  • LCD12864 液晶显示-汉字及自定义显示(串口)
  • 带中文字库的12864驱动笔记
  • 一、LCD12864(带字库的)使用教程:
  • BAT用户画像数据浅析
  • 一个脚本打比赛之SMP WEIBO 2016
  • android 瘦脸模式 sdk,大眼瘦脸加磨皮通通不能少,论美颜SDK是如何实现的
  • 美颜sdk算法总概——美白
  • Unity中实现高级相机操作——Cinemachine插件
  • 基于Android实现美颜相机功能的开发
  • Linux LASA声卡驱动之三:PCM设备的创建
  • android pcm文件大小_Android中的PCM设备
  • linux音频子系统 - pcm设备
  • linux 声卡设备文件夹,Linux ALSA声卡驱动之三:PCM设备的创建
  • 深入理解android 包体积优化,给apk瘦身全部技巧
  • MUI中微信支付必须用自有的 Android程序签名详解、打包、发布到Google play步骤
  • Android强行进阶:为何大厂APP如微信、支付宝、淘宝、手Q等只适配了armeabi-v7a/armeabi?
  • 微信资源混淆使用
  • web前端学习(三):微信小程序基于H5规范,开发Android应用程序
  • php打包签名apk文件在哪,Android_android应用签名详细步骤,1、准备工作apk的签名工作可以 - phpStudy...
  • MongoDB Ubuntu安装 APP 支付宝微信支付
  • Android 微信支付接入,返回出现-1问题
  • H5App 调用微信支付 报错-100,payment微信-1 general errors
  • Android集成微信支付之-天坑

excel 中vb组合框_Excel数据验证组合框代码相关推荐

  1. 通过VBA在excel中实现股票当日走势数据查询表(完整代码截图在文章最后,完整的excel原件可以在我的资源中下载)

    需求: 1.通过excel看盘: 2.输入不同的股票代码都可以自动爬取实时行情数据. 实现方案: 1.通过VBA从网上实时爬取行情数据: 2.通过VBA实现定时5s刷新一次数据: 3.通过VBA自动创 ...

  2. excel导入数据校验_Excel数据验证更新

    excel导入数据校验 I've finally updated my Data Validation intro video, so it shows the steps for creating ...

  3. excel 中vb组合框_Excel表中的数据验证组合框

    excel 中vb组合框 There are instructions on my Contextures website for using a combo box with data valida ...

  4. excel 中vb组合框_Excel组合框上的标题

    excel 中vb组合框 Excel组合框上的标题 (Headers on Excel Combo Boxes) You can use combo boxes to show a drop down ...

  5. excel 中vb组合框_在Excel 2010中修复组合框大小调整

    excel 中vb组合框 With Excel data validation, you can create drop down lists on a worksheet. However, the ...

  6. excel导入数据失败_Excel数据验证失败

    excel导入数据失败 Data validation is one of the best features in Excel. You can use it to create drop down ...

  7. excel导入数据校验_Excel数据验证错误消息

    excel导入数据校验 Do you like to use error checking in Excel, so that problem cells are flagged, or do you ...

  8. webbrowser控件 有数据 但页面空白_如何在Excel中实现可以切换不同数据系列的滚珠图?...

    ▲更多精彩内容,请点击上方Excel小铲子▲ 操作系统版本 Windows 10 64位 Excel版本 Microsoft Excel 2016 64位 案例文档下载 链接:https://pan. ...

  9. Java 使用poi导入excel,结合xml文件进行数据验证的例子(增加了jar包)

    ava 使用poi导入excel,结合xml文件进行数据验证的例子(增加了jar包) 假设现在要做一个通用的导入方法: 要求: 1.xml的只定义数据库表中的column字段,字段类型,是否非空等条件 ...

最新文章

  1. 开启注册丨NeurlPS 2021论文预讲会议题全公开,4大主题和25场报告等你来
  2. 初次使用MyEclipse || Servlet 的生命周期
  3. phpcms /api/phpsso.php SQL Injection Vul
  4. SAP ABAP如何隐藏你写的程序代码(危险,请小心谨慎)
  5. winform窗体控件多,加载慢、卡顿的解决办法
  6. ble连接过程建立_九点之蓝牙连接
  7. 超声换能器的原理及设计_超声波焊接机焊接系统——超声波换能器、变幅杆、焊头的选择...
  8. php-fpm linux_Linux下PHP-fpm配置
  9. 百度云 java私塾_JAVA私塾-百度云
  10. 怎么完全卸载赛门铁克_Symantec卸载方法,赛门铁克卸载
  11. H.264之lookahead
  12. zabbix如何监控ip地址_获取zabbix上所有主机的IP和主机名的实例代码
  13. 射影几何----利用中心和渐进方向求渐近线的方程
  14. 分享:avhttp简介
  15. 374. 猜数字大小
  16. java实现计算复杂数学表达式
  17. AT24C02的使用说明和完整代码-51单片机
  18. 我在vue踩的那些坑(Hbuilder)
  19. windows安装使用MyBatis Migrations
  20. 运动曲线研究(缓动效果)

热门文章

  1. 关于ADB需要知道的一些知识
  2. json数据条件查询,json数据sql查询中文乱码
  3. 如何绘制用户体验地图
  4. 主机链接无线网虚拟机nat模式固定ip设置
  5. Codeforces Round #620 (Div. 2)(D. Shortest and Longest LIS)(O(n log n)的最长上升子序列或者贪心)
  6. 服务器raid配置和安装系统,R390X G2服务器配板载RSTe阵列卡UEFI模式安装windows2008 R2系统典型配置...
  7. openssl 交叉编译
  8. Autosar MCAL开发必知的“术语”+“缩写”概念
  9. 软件工程 系统测试概述
  10. 项目里程碑达成的标准