excel中如何让光标移动到指定单元格?

比如当E2单元格不空白时,光标自动跳转到C3
2025-03-13 10:48:21
推荐回答(4个)
回答1:

在工作表中的change事件中设置,代码如下
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(0, 0) = "E2" Then
If Not IsEmpty(Target) Then Range("C3").Select
End If
End Sub

回答2:

移动鼠标点击指定单元格即可。

回答3:

if [E2]<>"" then [C3].select

回答4:

使用VBA方形,必要时我可以给你编程,需要的话