Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2007

Tip: Looking for answers? Try searching our database.

Melt info from 3 comboboxes into 1 box or bookmark

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jazzcrime - 19 Dec 2007 13:16 GMT
hi people!

I currently breaking my head over an issue, i could use some help!

- i have 3 comboboxes: combobox1 (list of country's), combobox2 (list of
company's), combobox3 (list of city's)

every possible combination of value's from comboboxes have a code.

my question:

what is the easiest way to get this done? their are 5 value's in combobox1,
3 value's in combobox2 and 6 value's in combobox3.

combobox1.value & combobox2.value & combobox3.value = combobox4.value

the thing is, combobox4.value = has not to be the value's from combobox
1/2/3 but a code that is decided by the value of combobox1/2/3. this value is
a code that is decided already by my boss, so it cannot be random.

for example:
Combobox1 = UK
Combobox2 = Microsoft
Combobox3 = Londen
Combobox4 = 12345

or

Combobox1 = UK
Combobox2 = Microsoft
Combobox3 = Manchester
Combobox4 = 55554

my english is not very good, i hope u understand my problem!

kind regards,
Helmut Weber - 19 Dec 2007 13:35 GMT
Hi Jazzcrime,

hmm...

>every possible combination of value's from comboboxes have a code.
>this value is a code that is decided already by my boss

if there is no algorithm, which returns the code,
then you need an enumeration...

--

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Vista Small Business, Office XP
Tony Strazzeri - 24 Dec 2007 05:03 GMT
Hi Jazzcrime,

Presumable each value in each combobox has a code.  Where is that
stored?

You could store the code in a second column of the combobox and then
extract that column to generate the value for combobox 4.

But why have a combobox4 at all if the value for is calculated based
on the other items?
There will only be one value for each combination of the other
comboboxes

Cheers
TonyS.

> hi people!
>
[quoted text clipped - 32 lines]
>
> kind regards,

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.