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.
#56746
Olá.

Gostaria de inserir a equação a seguir em um range de células.
Código: Selecionar todos
    For auxn = 7 To X - 1
    
        ActiveSheet.Cells(auxn, 4).FormulaLocal = "=CONCATENAR(Padrao!$C$26;$K$5;ÍNDICE(Padrao!$B$30:$B$79;CORRESP(B7;Padrao!$D$30:$D$79;0));$K$5;$J$5;$K$5;$H$5;$K$5;$I$5)"

    Next
No entanto, no lugar do "B7" deveria variar até X-1
Tipo "B" & auxn

no entanto, a equação assim:
Código: Selecionar todos
"=CONCATENAR(Padrao!$C$26;$K$5;ÍNDICE(Padrao!$B$30:$B$79;CORRESP("B" & auxn;Padrao!$D$30:$D$79;0));$K$5;$J$5;$K$5;$H$5;$K$5;$I$5)"
A sintaxe não aceita.
Sou extremamente iniciante ainda no VBA, mas preciso muito desenvolver esse código.

Aguardo ajudo de vocês
#56749
Tente assim:
Código: Selecionar todos
"=CONCATENAR(Padrao!$C$26;$K$5;ÍNDICE(Padrao!$B$30:$B$79;CORRESP(B" & auxn & ";Padrao!$D$30:$D$79;0));$K$5;$J$5;$K$5;$H$5;$K$5;$I$5)"
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