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.
#49870
Amigos Boa noite , tenho um problema com esse código quando executo da erro 438
Private Sub UserForm_Initialize()
Call Carregar_Listbox
End Sub

Sub Carregar_Listbox()

Planilha1.Select

Dim ArrayItems()

With Planilha1
ReDim ArrayItems(1 To .UsedRange.Rows.Count + 3, 3 To .UsedRange.clumns.Count + 1)

ListBox1.ColumnCount = .UsedRange.Columns.Count
For linha = 2 To .UsedRange.Rows.Count + 3

ListBox1.AddItem
For coluna = 2 To .UsedRange.Columns.Count + 1

ArrayItems(linha, coluna) = .Cells(linha, coluna).Value
Next coluna
Next linha

ListBox1.List = ArrayItems()

End With
End Sub
#49872
De início notei o erro abaixo:
ReDim ArrayItems(1 To .UsedRange.Rows.Count + 3, 3 To .UsedRange.clumns.Count + 1)

correção ~~~> acrescente a letra "o", conforme em vermelho abaixo
ReDim ArrayItems(1 To .UsedRange.Rows.Count + 3, 3 To .UsedRange.Columns.Count + 1)
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