
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address(0, 0) = "A10" Then
Range("D10").Select
End If
End Sub
|
| scossa's web site |
| Se tu hai una mela, ed io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee. (George Bernard Shaw) |
Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim a As String
a = Target.Address
If Target.Address() = a Then
Range("D10").Select
End If
End Sub
|
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim a As Variant
a = Target.Address()
MsgBox (a)
If Target.Address(10, 1) = a Then
Range("D10").Select
End If
End Sub
|
| scossa's web site |
| Se tu hai una mela, ed io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee. (George Bernard Shaw) |
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim b As String
b = Range("A10").Address
If ActiveCell.Address = b Then
Range("d10").Select
End If
End Sub |
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If ActiveCell.Address = Range("A10").Address Then
Range("d10").Select
End If
End Sub
|
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(ActiveCell, Range("A10")) Is Nothing Then Exit Sub
Range("d10").Select
End Sub |
| scossa's web site |
| Se tu hai una mela, ed io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee. (George Bernard Shaw) |
'codice del Foglio1
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("A10")) Is Nothing Then Exit Sub
Application.EnableEvents = False
Range("D10").Select
Application.EnableEvents = True
End Sub |
| scossa's web site |
| Se tu hai una mela, ed io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee. (George Bernard Shaw) |
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("B10")) Is Nothing And Me.Range("A10").Value = "" Then
Application.EnableEvents = False
Range("D10").Select
Application.EnableEvents = True
End If
End Sub |
