Una famiglia di software per fogli di calcolo Microsoft con strumenti per l'analisi, la creazione di grafici e la comunicazione dei dati.
Ciao Massimo,
Prova qualcosa del genere:
'=========>>
Option Explicit
'--------->>
Public Sub Cancella()
Dim WB As Workbook
Dim SH As Worksheet
Dim Rng As Range, rCell As Range
Dim lng As Long
Dim lRisposta As Long
Set WB = ThisWorkbook
Set SH = WB.Sheets("Foglio1")
Set Rng = SH.Range("A5:A81,F5:F81,I5:I81")
lRisposta = MsgBox(Prompt:="VUOI VERAMENTE PULIRE LE CELLE " _
& Rng.Address(0, 0) & "?", _
Title:="Attenzione", _
Buttons:=vbYesNoCancel + vbQuestion)
If lRisposta = vbYes Then
For Each rCell In Rng.Cells
With rCell
If IsNumeric(.Value) _
Or .NumberFormat = "dd/mm/yyyy" _
Or .NumberFormat = "m/d/yyyy" _
Or .Value = "INSTALLATO" _
Or .Value = "NON INSTALLATO" Then
'\ Do nothing!
Else
.ClearContents
End If
End With
Next rCell
End If
End Sub
'<<=========
===
Regards,
Norman