Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default combobox values

Hi,
I have a userform with 10 comboboxes on it how do I use excel to check the
value of the other boxes on the form. so I do have not any duplicates of
items.

Thanks

Greg


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default combobox values

Greg, Here is some pseudo code that should get your started..

enjoy, Rick

Dim x as Integer, y as Integer

for x = 1 to 9
for y = x+1 to 10
if Me.CompoBox & x = Me.CompoBox & y then
MsgBox("Duplicate Found")
Exit For
endif
next y
next x



"Greg" wrote in message
...
Hi,
I have a userform with 10 comboboxes on it how do I use excel to check

the
value of the other boxes on the form. so I do have not any duplicates of
items.

Thanks

Greg




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default combobox values

Thank you Rick

Greg
"Rick Hansen" wrote in message
...
Greg, Here is some pseudo code that should get your started..

enjoy, Rick

Dim x as Integer, y as Integer

for x = 1 to 9
for y = x+1 to 10
if Me.CompoBox & x = Me.CompoBox & y then
MsgBox("Duplicate Found")
Exit For
endif
next y
next x



"Greg" wrote in message
...
Hi,
I have a userform with 10 comboboxes on it how do I use excel to check

the
value of the other boxes on the form. so I do have not any duplicates of
items.

Thanks

Greg






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
using VBA to retrieve values to ComboBox Serene Excel Discussion (Misc queries) 0 March 19th 10 02:21 AM
Two values in a combobox alvin Kuiper Excel Programming 2 February 23rd 06 06:55 PM
Fill values into a listbox matching selected values from a combobox Jon[_19_] Excel Programming 4 January 25th 05 04:25 PM
ComboBox Values Jim Berglund Excel Programming 4 August 17th 04 10:18 PM
ComboBox Values Darren[_3_] Excel Programming 1 July 16th 03 10:41 AM


All times are GMT +1. The time now is 08:06 PM.

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"