Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
查看: 3553|回复: 8

[已解决]如何添加RemoveButton CommandButton控件

[复制链接]
发表于 2013-1-3 10:53 | 显示全部楼层 |阅读模式
请教:如何添加RemoveButton CommandButton控件?
最佳答案
2013-1-4 13:09
listview.rar (20.09 KB, 下载次数: 14)
excel精英培训的微信平台,每天都会发送excel学习教程和资料。扫一扫明天就可以收到新教程
发表于 2013-1-3 16:42 | 显示全部楼层
回复

使用道具 举报

 楼主| 发表于 2013-1-4 12:34 | 显示全部楼层
hwc2ycy 发表于 2013-1-3 16:42
你想做成啥效果呀。

想在LISTBOX控件中删除行。
回复

使用道具 举报

发表于 2013-1-4 12:59 | 显示全部楼层
  1. Private Sub RemoveButton_Click()
  2.     With ListView1
  3.         .ListItems.Remove .SelectedItem.Index
  4.     End With
  5. End Sub
复制代码
回复

使用道具 举报

发表于 2013-1-4 13:09 | 显示全部楼层    本楼为最佳答案   
listview.rar (20.09 KB, 下载次数: 14)
回复

使用道具 举报

 楼主| 发表于 2013-1-4 13:35 | 显示全部楼层
hwc2ycy 发表于 2013-1-4 13:09

删除效果达到,但是,是如何把RemoveButton CommandButton控件添加到窗体上UserForm1的?
回复

使用道具 举报

发表于 2013-1-4 13:42 | 显示全部楼层
你添加一个按钮。
回复

使用道具 举报

 楼主| 发表于 2013-1-4 14:10 | 显示全部楼层
hwc2ycy 发表于 2013-1-4 13:42
你添加一个按钮。

就是在工具控件中找不到呢。
回复

使用道具 举报

发表于 2013-1-4 15:08 | 显示全部楼层
listview操作.gif
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-4-26 03:00 , Processed in 0.333362 second(s), 12 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表