excel中 在sheet1某单元格内输入数据 在sheet2列出清单

[复制链接]
查看11 | 回复1 | 2013-4-6 12:58:17 | 显示全部楼层 |阅读模式
sheet1的代码Private Sub Worksheet_Change(ByVal Target As Range)If Target.Address = "$A$1" And Len(Target.Value) ThenDim rlWith Sheet2rl = .Range("A10000").End(xlUp).RowIf Application.WorksheetFunction.CountIf(.Range("A1:A" & rl), Target.Value) ThenMsgBox "有重复数据,请重新输入"Else.Cells(rl + 1, 1) = Target.ValueEnd IfTarget = ""End WithEnd...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行