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 ejotad
Posts
#61115
Estou querendo inserir uma formula, pelo VBA que seria.
Código: Selecionar todos
ActiveCell = "=MULT(" & colunaSOMA & linhaSOMA & ";" & colunaPTS & linhaPTS & ")"
Problema é que ele não aceita desta forma, para ele aceitar preciso colocar um espaço antes do "igual" >>> " =MULT(" <<, mas o problema é que ele não faz a soma depois.

Ficando sim:
Imagem

Quando eu vou e edito tirando o espaço ele da certo, mas não gostaria de ficar alterando toda vez.
Imagem Imagem

Se alguém conseguir me ajudar, fico grato.
Editado pela última vez por ejotad em 16 Dez 2020 às 12:55, em um total de 1 vez.
Por osvaldomp
#61118
Experimente:

ActiveCell.FormulaLocal = "=MULT(" & colunaSOMA & linhaSOMA & ";" & colunaPTS & linhaPTS & ")"

ou

ActiveCell = "=PRODUCT(" & colunaSOMA & linhaSOMA & "," & colunaPTS & linhaPTS & ")"
ejotad, Bikke agradeceu por isso
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