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
Por Angra
Posts Avatar
#54187
Boa noite
Tenho uma macro que faz isso mas agora preciso de uma mais especifica, baseada em parâmetros de referencia :D :D
Você não está autorizado a ver ou baixar esse anexo.
Por babdallas
#54198
Veja se ajuda
Código: Selecionar todos
Sub ApagarValor_babdallas()
    Dim Celula      As Range
    Dim lngP1       As Long
    Dim lngP2       As Long
    Dim lngCont     As Long

    With wshTeste
        lngP1 = .Range("AH3").Value2
        lngP2 = .Range("AO3").Value2
        lngCont = 1
        For Each Celula In .Range("AK7:Ak36")
            If lngCont = lngP1 Then Celula.Value2 = vbNullString
            lngCont = lngCont + 1
        Next Celula
        
        lngCont = 1
        For Each Celula In .Range("AL7:AL36")
            If lngCont = lngP2 Then Celula.Value2 = vbNullString
            lngCont = lngCont + 1
        Next Celula
    End With
End Sub
Você não está autorizado a ver ou baixar esse anexo.
Avatar do usuário
Por Angra
Posts Avatar
#54200
babdallas, acho que "faltou aquela..." mas tenho certeza que resolvera fácil, fácil o problema. No aguardo :D :D
Você não está autorizado a ver ou baixar esse anexo.
Por babdallas
#54202
Só ajustar o codename da Planilha. Mudei de Plan1 para wshTeste.
Você não está autorizado a ver ou baixar esse anexo.
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