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
#72234
Prezados bom dia , alguém pode me dar uma ajuda esse código adiciona itens no listbox para depois salvar na planilha ,
sendo que no listbox só consigo adicionar 10 colunas .
alguém tem uma solução para poder adicionar mas de 10 colunas e depois salvar na planilha?
desde já agradeço pela a ajuda.

Private Sub AdicionarList_Click()

Dim LinhaListbox As Integer

LinhaListbox = Me.ListCad.ListCount

ListCad.AddItem (Me.ListCad.ListCount + 1)
ListCad.List(LinhaListbox, 1) = TxtDataRelat
ListCad.List(LinhaListbox, 2) = TxtNomeRelat
ListCad.List(LinhaListbox, 3) = CmbEventoRelat
ListCad.List(LinhaListbox, 4) = CmbsolictanteRelat
ListCad.List(LinhaListbox, 5) = CmbautorizadoRelat
ListCad.List(LinhaListbox, 6) = cmbSuperviRelat
ListCad.List(LinhaListbox, 7) = TxtGarçomRelat
ListCad.List(LinhaListbox, 8) = TxtLocalRelat
ListCad.List(LinhaListbox, 9) = CmbMaterialRelat' obs so condigo adicionar até aqui

ListCad.List(LinhaListbox, 10) = CmbalimentRelat
ListCad.List(LinhaListbox, 11) = TxtPrecoRelat
ListCad.List(LinhaListbox, 12) = TxtUndRelat
ListCad.List(LinhaListbox, 13) = TxtTotalRelat

LinhaListbox = LinhaListbox + 1


End Sub
#72252
Uma opção é ao invés de carregar os dados diretamente na ListBox, carregá-los antes em uma matriz e depois carregar da matriz na ListBox.

Outra opção é o macete explicado neste vídeo ~~~> https://www.youtube.com/watch?v=7dNEK__40O8
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