Ciao a tutti,
su un foglio che chiameremo "home" dovrei far cancellare una serie di celle (J30:J36;N30:N36;R30:R36) al variare della cella "G30".
Come faccio?
Grazie
Moderatori: Anthony47, Flash30005
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Intersect(Target, Range("G30")) Is Nothing Then Exit Sub
Range("I30:I36").Select
Selection.ClearContents
Range("L30:L36").Select
Selection.ClearContents
Range("O30:O36").Select
Selection.ClearContents
End SubPrivate Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("G30")) Is Nothing Then
Application.EnableEvents = False
Range("I30:I36,L30:L36,O30:O36").ClearContents
Application.EnableEvents = True
End If
End SubPrivate Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Not Intersect(Target, Range("G30")) Is Nothing Then
Application.EnableEvents = False
Range("I30:I36,L30:L36,O30:O36").ClearContents
Application.EnableEvents = True
End If
End SubTorna a Applicazioni Office Windows
| Excel apre solo una schermata bianca Autore: jameswilson |
Forum: Applicazioni Office Windows Risposte: 1 |
| Inserire add.in nella barra di avvio veloce in excel 2003 Autore: Ricky0185 |
Forum: Applicazioni Office Windows Risposte: 4 |
| Excel: problema con date se devo unirle a testi Autore: valle1975 |
Forum: Applicazioni Office Windows Risposte: 7 |
Visitano il forum: Nessuno e 13 ospiti