电脑Excel表格数据自动填充问题,当A列的数据相同时其他列的数据也自动填充

[复制链接]
查看11 | 回复4 | 2013-10-17 17:24:48 | 显示全部楼层 |阅读模式
你这样的想法 只能使用VBA了……别的没有什么办法……你确定要这样做?Private Sub Worksheet_Change(ByVal Target As Range)n = Target.RowIf n > 1 And Target.Column = 1 Then For i = 1 To n - 1 If Cells(i, 1) = Cells(n, 1) Then
Range(Cells(i, 2), Cells(i, 5)).Select
Selection.Copy
Cells(n, 2).Select
ActiveSheet.Paste End If NextEnd I...
回复

使用道具 举报

千问 | 2013-10-17 17:24:48 | 显示全部楼层
Private Sub Worksheet_Change(ByVal Target As Range)Dim i As IntegerIf Target.Count = 1 And Target.Column = 1 ThenFor i = 1 To Target.Row - 1If Target.Value = Cells(i, 1) Th...
回复

使用道具 举报

千问 | 2013-10-17 17:24:48 | 显示全部楼层
这个不用vb啊直接条件格式判断 A列是否重复不过第一个也会被填充...
回复

使用道具 举报

千问 | 2013-10-17 17:24:48 | 显示全部楼层
得用VBA,同意一楼的....
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行