Re: listbox question



On Tue, 23 Aug 2005 19:32:27 +1200, anthony wrote:

> If I have a listbox with a list of items, and I want to move an item in the
> list to new place, say from listbox1.items[1] and I want to move it to
> listbox1.items[5] how do I do it. Ok that much I think I can work out, but
> heres the rub. I want to reflect those changes in another listbox. so if I
> move an item from position 1 to position 5, I need the change the items in
> listbox two also to the same, I cant just say listbox1.items:=
> listbox2.items, because they hold different data but it is dependant on the
> each other. EG: listbox1.items hold the names of files and listbox2.items
> hold the path and name of the file.

Try looking in Help, everything is there.

ListBox1.Items.Mov(1, 5);
ListBox2.Items.Mov(1, 5);

C
--
I'm Sick And Tired Of Bein' Sick And Tired
.



Relevant Pages

  • Re: Append Documents
    ... you'll have to built a userform to list the files (probably ... in a listbox) so users can pick the files they want. ... Then loop through ... Prev by Date: ...
    (microsoft.public.word.vba.general)
  • Re: List Box Multiple clicking
    ... > If you want the user only click one, you may chance the property of the ... > listbox on the code. ... Hope it help and sorry if i'm misleading your ... Prev by Date: ...
    (microsoft.public.access.forms)
  • Re: ReInstantiate an Object?
    ... combobox a listbox when I have already finstanted and filled that". ... course I can do something like that, however than I have to deepclone most ... Cor ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re-POST: How to close forms opened from other workbooks...?
    ... | or reference a listbox item if it is open. ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • MulitiLine TextBox in datagrid?
    ... listbox in a datagrid?? ... thx in advance ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)