O código, VBA, pode ser, como exemplo, o seguinte:
Sub Apaga_Colunas_Se_Contiverem_Domingo()
Dim lColumn As Long
Dim iCntr As Long
lColumn = 30 ‘ aqui podes mudar a quantidade de colunas a verificar
For iCntr = lColumn To 1 Step -1
If Cells(1, iCntr) = “Domingo” Then ‘ Podes mudar o texto
Columns(iCntr).Delete
End If
Next
End Sub
Fica bem e diz qq coisa, ok?
Autor
Artigos
A visualizar 1 resposta da conversa
Tem de iniciar sessão para responder a este tópico.
Sahifa Theme License is not validated, Go to the theme options page to validate the license, You need a single license for each domain name.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.