我在EXCEL中用宏编写一个小程序给谋个单元格内每次加一
1个回答
展开全部
将语句改为:
Private
Sub
Worksheet_Change(ByVal
Target
As
Range)
'(当前工作表发生内樱森容改变触发宏命令)
If
Worksheets("Sheet1").Cells(5,
3).Value
=
"1"
Then
Worksheets(1).Activate
Dim
i
As
Integer
For
i
=
Sheet1.Cells(5,
4)
To
Sheet1.Cells(5,
4)
+
1
Sheet1.Cells(5,
4)
=
i
Next
i
Worksheets("Sheet1").Cells(5,
3).Value
=
"
"渣团
Else
End
If
End
Sub
就如颂橘可以了
Private
Sub
Worksheet_Change(ByVal
Target
As
Range)
'(当前工作表发生内樱森容改变触发宏命令)
If
Worksheets("Sheet1").Cells(5,
3).Value
=
"1"
Then
Worksheets(1).Activate
Dim
i
As
Integer
For
i
=
Sheet1.Cells(5,
4)
To
Sheet1.Cells(5,
4)
+
1
Sheet1.Cells(5,
4)
=
i
Next
i
Worksheets("Sheet1").Cells(5,
3).Value
=
"
"渣团
Else
End
If
End
Sub
就如颂橘可以了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询