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.
Por Gleisom
Posts
#40363
Olá, pessoal!
Preciso fazer uma verificação linha por linha em uma matriz levando em conta uma dada sequência de códigos. Anexei uma planilha simplificada e nela coloquei mais detalhes dessa problema. Desde já agradeço muito a ajuda de vocês!! Abraço!
Você não está autorizado a ver ou baixar esse anexo.
#40366
Veja se atende.

Código: Selecionar todos
Sub ContaConjuntos()
 Dim k As Long, v As Long, x As Long
  If [I2] <> "" Then Range("I2:I" & Cells(Rows.Count, 9).End(3).Row) = ""
  For k = 2 To Cells(Rows.Count, 6).End(3).Row
   For v = 2 To Cells(Rows.Count, 2).End(3).Row
    If Application.CountIf(Cells(v, 2).Resize(, 3), Cells(k, 6)) And _
     Application.CountIf(Cells(v, 2).Resize(, 3), Cells(k, 7)) Then x = x + 1
   Next v
   Cells(k, 9) = x: x = 0
  Next k
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