Answers:
如果您想将行插入更改后的值下方,而不管更改了什么,则可以使用以下方法:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 4 Then
If Target.Worksheet.Rows(Target.Row).EntireRow.Hidden = False Then
Target.Offset(1, 0).EntireRow.Insert
Target.Offset(1, 0).EntireRow.Insert
End If
End If
End Sub
请注意,此代码必须放置在您希望它影响的工作表的代码页中。