Listboxes 2

  • Thread starter Thread starter Denise
  • Start date Start date
D

Denise

I have two forms each with a listbox on them

How do I get it so that when the user clicks a button on
the first form the second form is displayed which it's
listbox containing the same data as the first

This is what I've got so far
sub Userform1_click()
userform2.show
userform2.listbox1.value = userform1.listbox1.value
end sub
 
Private Sub CommandButton1_Click()
With UserForm2
.ListBox1.List = Me.ListBox1.List
.ListBox1.ListIndex = 0
.Show
End With
End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top