V
voip1234
I have listbox which I have initialized with
listbox1.ColumnCount = 2
then i need to populate it with the values from
an array (which is passed on to me by another function)
in one column and a repeating string on the
second column.
The code to populate the first column is
------------------------
Dim vFiles As Variant
vFiles = FileOpenDialog(Options.DefaultFilePath(wdDocumentsPath))
If IsArray(vFiles) Then
ListBox2.List = vFiles
End If
------------------------
now I want to populate the second column of this
listbox with the same string...
I tried using .list and .column, also additem,
but they all give me an error...its as if the second
column doesnt exist...is it possible that
by setting this line
ListBox2.List = vFiles
where vfiles is a one dimensional array, the listbox
becomes one dimensional?
or what might i be doing wrong?
I suppose my other option is to copy that array into
a two dimensional array and then populate with the
2 dimensional array info, but is that the best way to go?
thank you
listbox1.ColumnCount = 2
then i need to populate it with the values from
an array (which is passed on to me by another function)
in one column and a repeating string on the
second column.
The code to populate the first column is
------------------------
Dim vFiles As Variant
vFiles = FileOpenDialog(Options.DefaultFilePath(wdDocumentsPath))
If IsArray(vFiles) Then
ListBox2.List = vFiles
End If
------------------------
now I want to populate the second column of this
listbox with the same string...
I tried using .list and .column, also additem,
but they all give me an error...its as if the second
column doesnt exist...is it possible that
by setting this line
ListBox2.List = vFiles
where vfiles is a one dimensional array, the listbox
becomes one dimensional?
or what might i be doing wrong?
I suppose my other option is to copy that array into
a two dimensional array and then populate with the
2 dimensional array info, but is that the best way to go?
thank you