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

Tópicos relacionados a códigos VBA, gravação de macros, etc.
  • Avatar do usuário
  • Avatar do usuário
#54141
Boa tarde senhores,
Depois de muuuitas pesquisas, consegui uma função, só que está criticando sem mesmo aos 3 campos estarem repetidos, não permitindo GRAVAR. sinto que cheguei perto mas tá faltando um pequeno detalhe que ainda não consegui superar, se o senhores puderem, por favor, ajudar-me ficarei muito feliz.
Segue abaixo um anexo de toda a minha Macro no Módulo 1 na esperança que os senhores, mestres do excel, possam entender onde estou tentando resolver aqui, OK?
Você não está autorizado a ver ou baixar esse anexo.
#54157
Boa tarde.
Nesta parte do seu código:
Código: Selecionar todos
For i = 2 to UltimaLinha
    If Sheets(3).Range("C" & i).Value = Sheets(1).Range("AI10").Value Then
   If Sheets(3).Range("D" & i).Value = Sheets(1).Range("AQ10").Value Then
 If Sheets(3).Range("E" & i).Value = Sheets(1).Range("U12").Value Then

Achou = True

end if
end if
end if

Next i
Tente substituir por :
Código: Selecionar todos
For i = 2 to UltimaLinha
If Sheets(3).Range("C" & i).Value = Sheets(1).Range("AI10").Value and  Sheets(3).Range("D" & i).Value = Sheets(1).Range("AQ10").Value and Sheets(3).Range("E" & i).Value = Sheets(1).Range("U12").Value Then

achou = True

End if

Next i


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