Moderatori: Anthony47, Flash30005
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim xArea As String
xArea = "C14:D15, C19:C20, C22:C23"
If Not Application.Intersect(Target, Range(xArea)) Is Nothing Then
If Target.Row = 14 Or Target.Row = 15 Then
If Target.Value <> "x" Then
Target.Value = "x"
End If
Else
If Target.Value <> "no" Then
Target.Value = "no"
Else
Target.Value = "si"
End If
End If
End If
Cancel = True
End Sub
'Cells(17, 5).Select
ActiveWindow.RangeSelection.Select
End Sub
Forse non ho ben messo in evidenza che la Sub Worksheet_BeforeDoubleClick va AGGIUNTA al progetto attuale, quindi lasciando la Sub Worksheet_Change a fare il lavoro che gia' fa adesso.Quanto al Doppio-clic per le due aree sono un po' perplesso perchè i valori non sono 2 bensì 3 (oltre a x/vuoto o si/no deve esserci anche il valore vuoto per il si/no in quanto, quando si chiude tramite il pulsante d'Uscita, il file elimina ogni dato e salva tutto vuoto). Lavorerò anche su questo
Torna a Applicazioni Office Windows
Visitano il forum: Nessuno e 56 ospiti