excel下拉菜单vba_在Excel下拉菜单中删除使用过的项目

excel下拉菜单vba

There is a new sample file on my Contextures web site, which lets you pick players for each inning in a baseball game. You could tweak the file a bit, and use it to assign employees to workstations each day of the week, or anything similar. After assigning employees, remove used items in Excel drop down list, to prevent them from being assigned twice.

我的Contextures网站上有一个新的示例文件,可让您为棒球比赛中的每一局选择球员。 您可以稍微调整文件,然后使用它在一周中的每一天或类似的时间将员工分配到工作站。 分配员工后,请在Excel下拉列表中删除使用过的项目,以防止它们被分配两次。

名称从列表中消失 (Names Disappear From List)

Once you have assigned a player in an inning, that name disappears from the drop down list in that column. In the screen shot below, Mike has been assigned as the pitcher for inning one. When I open the list in the cell below, Mike’s name is missing – it used to be between Lee and Pat.

在局中分配了一名球员后,该名称将从该列的下拉列表中消失。 在下面的屏幕截图中,麦克已被指定为一局投手。 当我在下面的单元格中打开列表时,Mike的名字丢失了–以前在Lee和Pat之间。

hideuseditems01

查看球员姓名分配 (See the Assignments by Player Name)

There was an older version of this sample file, and I have updated it to use Excel Tables. I’ve also added a sheet that shows the assignments by player name, and you can see how often each player was assigned to a position.

该示例文件有一个较旧的版本,我已经对其进行了更新,以使用Excel Tables。 我还添加了一张表格,该表格按球员姓名显示分配情况,您可以看到每个球员分配到位置的频率。

hideuseditems02

下载档案 (Download the File)

To see the file, and how it works, you can download it from my Contextures website. On the Excel Samples page, look for DV0061 - Assign Players Each Inning. The file is in xlsx format, and does not contain macros.

若要查看文件及其工作方式,可以从我的Contextures网站下载它。 在“ Excel样本”页面上,查找DV0061-每个局限分配球员 。 该文件为xlsx格式,不包含宏。

翻译自: https://contexturesblog.com/archives/2013/12/17/remove-used-items-in-excel-drop-down/

excel下拉菜单vba

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值