#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Listboxes 2

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Listboxes 2

Hi

u donot need a vba code to do this...........
use validation List
would be effactive

pls find the attached file, it might be helpful

your

Attachment filename: dynamic lists.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=57027
--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Listboxes 2

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)

"Denise" wrote in message
...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
listboxes Mandy[_2_] Excel Programming 3 May 7th 04 04:38 PM
Listboxes Lionel Fridjhon Excel Programming 0 April 5th 04 06:28 PM
Single Selection ListBoxes jacqui[_2_] Excel Programming 4 February 10th 04 03:16 PM
Linked ListBoxes Phill Excel Programming 1 February 6th 04 04:54 PM
ListBoxes - correct syntax Bob Phillips[_5_] Excel Programming 0 September 17th 03 02:02 PM


All times are GMT +1. The time now is 01:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"