Estou usando o Excel 2007 e uso uma macro para duplicar linha na tabela do Excel, porém caso tenha algum filtro na tabela, dá um erro e se der o comando ShowAllData não estando filtrado dá erro da mesma forma.
Preciso verificar se a tabela em questão está filtrada para então retirar o filtro da tabela:
Código: Selecionar todos
If TABELA_POSSUI_FILTRO Then
ActiveSheet.ShowAllData
End If
Valeu!