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
#72043
Veja se lhe ajuda.

1. no código UserForm_Initialize desative esta linha ~~~> Call PopularListView

2. altere o código comboBox1_Click conforme abaixo.
Código: Selecionar todos
Private Sub comboBox1_Click()
 PopularListView
End Sub
#
#
3. no código PopularListView substitua estas linhas
Código: Selecionar todos
 ULinha = Plan1.Cells(Plan1.Cells.Rows.Count, "A").End(xlUp).Row
       ListView1.ListItems.Clear
       For X = 2 To ULinha
           Set li = ListView1.ListItems.Add(Text:=Plan1.Cells(X, "A").Value)
           li.ListSubItems.Add Text:=Plan1.Cells(X, "B").Value
           li.ListSubItems.Add Text:=Plan1.Cells(X, "C").Value
       Next
#
por estas abaixo
Código: Selecionar todos
With Sheets(ComboBox1.Value)
        ULinha = .Cells(Rows.Count, "A").End(xlUp).Row
        ListView1.ListItems.Clear
        For X = 2 To ULinha
         Set li = ListView1.ListItems.Add(Text:=.Cells(X, "A").Value)
         li.ListSubItems.Add Text:=.Cells(X, "B").Value
         li.ListSubItems.Add Text:=.Cells(X, "C").Value
        Next
       End With
fcarlosc2018 agradeceu por isso
#72047
Olá, @fcarlos.
O recurso para marcar o tópico como resolvido continua inativo aqui no fórum.
Para contornar você pode editar o título do post na sua primeira postagem acrescentar algo como [RESOLVIDO] no início do título.
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