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

Dúvidas sobre cálculos, funções simples e aninhadas, fórmulas matriciais, etc.
  • Avatar do usuário
#70335
Olá, queria saber se é possível realizar o seguinte no excel:
Imagem
O Total enviados tem a intenção de calcular em linha reta pois é apenas para gerenciar quantos produtos se foram, entretyanto, ele só pega a g7 e h7, isso só ate apertar o botao, pois ao apertar, ele deve começar a a contar a celula da frente tambem, ou seja, do g7 ao i7 e assim, a cada vez que apertar o botao, ele selecionar sucessivamente a celula a frente da ultima selecionada.

quem puder me ajudar vai me quebrar um bom galho...
#70343
FeEDIT escreveu: 18 Abr 2022 às 10:39 ... vai me quebrar um bom galho...
Preserve o ambiente! ;)
Código: Selecionar todos
Sub EstendeIntervaloSoma()
 Dim s As String, c As Range
  For Each c In [E7].Precedents
   s = c.Address(0, 0)
  Next c
  [E7].Formula = Replace([E7].Formula, s, Range(s).Offset(, 1).Address(0, 0))
End Sub
#
ou
Código: Selecionar todos
Sub EstendeIntertvaloSoma()
 Dim s As String
  s = Mid([E7].Formula, InStr([E7].Formula, ":") + 1, Len([E7].Formula) - 1 - InStr([E7].Formula, ":"))
  [E7].Formula = Replace([E7].Formula, s, Range(s).Offset(, 1).Address(0, 0))
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