Help! How to select windows from a ListBox

Please Help!

Hello
I have an ListBox and a lot of Windows. You can select an item in the List. All things in the list are names of the windows. How can I do that the window that you select are open.
There is the
Call [name of the window]
For example: call home
Fuktion but that doesen’t work.
I have Test something like: call „select thing“ or so. But it doesen‘t work. How can I do that worken?

Please Help!

If you have specific windows, with ImplicitInstance set to True on the windows you want to show, your ListBox.Change event might look like this:

Sub Change() Handles Change
  Select Case me.CellValueAt( me.SelectedRowIndex, 0 )
  case "Window2"
    Window2.Show
  case "Window3"
    Window3.Show
  End Select
End Sub

Oh yes this work.
Thank you!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.