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
Por walber
Posts
#20551
Boa tarde

consegui desenvolver este sistema de caixa com a ajuda de tutoriais e fóruns, mas não consegui adaptar na minha planilha

quero que os valores da coluna 5 do listbox seja somada em uma textbox conforme vou adicionando mas informações

estou usando este codigo


Private Sub CmdCaixa_Click()
Dim x As Integer
x = ListBox1.ListCount

With ListBox1
.AddItem
.List(x, 0) = TxtData.Value
.List(x, 1) = TxtDescrição.Value
.List(x, 2) = TxtQntde.Value
.List(x, 3) = Format(TxtValor.Value, "currency")
.List(x, 4) = Format(TxtTotal.Value, "currency")
.List(x, 5) = TxtFornecedor.Value
.List(x, 6) = TxtObservação.Value

TxtDescrição = Clear
TxtQntde = Clear
TxtValor = Clear
TxtTotal = Clear
TxtFornecedor = Clear
TxtObservação = Clear

End With
End Sub

.List(x, 4) = Format(TxtTotal.Value, "currency") os valores seja somado na TxtTotal2 automaticamente
Avatar do usuário
Por Reinaldo
Avatar
#20556
Experimente, logo apos a linha .List(x, 6) = TxtObservação.Value
TxtTotal2.value=texttotal2.value + txttotal.value
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