Bruno.62
2015-10-02 14:59:04 UTC
Excel 2010.
Ho usato la stringa e la sub che seguono, ma non riazzerano solo il
filtro automatico, ma lo estirpano e quindi non è più disponibile in
caso di foglio bloccato.
Come risolvere?
Grazie
If Selection.AutoFilter = True Then Selection.AutoFilter
e questo codice:
Sub AutoFiltroOff()
Dim wb As Workbook
Dim ws As Worksheet
Set wb = ThisWorkbook
Set ws = wb.ActiveSheet
'azzera le condizioni del filtro automatico
'e mostra tutti i dati
If ws.AutoFilterMode Then
If ws.FilterMode Then
ws.ShowAllData
End If
End If
Set ws = Nothing
Set wb = Nothing
End Sub
---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus
Ho usato la stringa e la sub che seguono, ma non riazzerano solo il
filtro automatico, ma lo estirpano e quindi non è più disponibile in
caso di foglio bloccato.
Come risolvere?
Grazie
If Selection.AutoFilter = True Then Selection.AutoFilter
e questo codice:
Sub AutoFiltroOff()
Dim wb As Workbook
Dim ws As Worksheet
Set wb = ThisWorkbook
Set ws = wb.ActiveSheet
'azzera le condizioni del filtro automatico
'e mostra tutti i dati
If ws.AutoFilterMode Then
If ws.FilterMode Then
ws.ShowAllData
End If
End If
Set ws = Nothing
Set wb = Nothing
End Sub
---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus