Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Tudo que estiver relacionado ao Excel básico, como somar, calcular média, colocar bordas, etc.
  • Avatar do usuário
#72993
Passei o dia inteiro hoje tentando ativar o código Excluir no userforms e não consegui finalizar, ele dá todas as mensagens mas NÃO ESCLUI A LINHA BUSCADA, não consegui achar uma varíável. veja os códigos abaixo, preciso enviar o arquivo tambem para facilitar o entendimento?
Private Sub BtExcluirCad_Click()
On Erro GoTo Erro
Plan6.Activate
Dim plan As String
plan = Plan6.Name

Dim confirmar As String
confirmar = MsgBox("Deseja realmente EXCLUIR este registro?", vbYesNo, "EXCLUIR")

If confirmar = vbNo Then
MsgBox "Exclusao cancelada!", vbInformation, "EXCLUIR"
Exit Sub
End If

Dim c
With Worksheets(plan).Range("A:A")
Set c = .Find(resp, LookIn:=xlValues, lookat:=xlWhole)

If Not c Is Nothing Then
c.Activate
Selection.EntireRow.Delete
MsgBox "Exclusao efetuada com sucesso!", vbInformation, "EXCLUIR"
Else
End If

End With
Exit Sub
Erro:
MsgBox "Erro!", vbCritical, "ERRO"

End Sub
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord