Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Visual Basic code for returning associated values of selected items

Dear Sir or Madam:

I am providing below the explanation of the problem I am trying to solve along with the data. Any help with the coding would greatly appreciated as I am new to to programming. I am using VB Net. Thanks!

Color Value
Green 2
Red 1
Purple 4
Blue 6
Yellow 3
Orange 5

Red,Purple,Green,Yellow 1+4+2+3

In columns "A" and 'B" I have the raw data as color and its values. In column "C" and any arbitrary row I want the user selected colors seperated by commas (except there should be no comma for the last item selected), and in column "D" in the adjoining cell the sum total of the values of the selected colors. How do we do this through Visual Basic code? Thanks!

Replies can also be emailed to me at Removed By Mod.
[832 byte] By [gskrishnan] at [2007-11-11 11:59:18]
# 1 Re: Visual Basic code for returning associated values of selected items
Moved to .NET

I have edited your post and removed your email address.

You should never post your email address in an open post on an open forum. Mail spam bots can pick that up and before you know it, your mailbox is full of junk mail. If you wish to share your email address with other forum members, please do so via our PM system.

In addition, we prefer all answers to questions be publically posted rather than sent via EMail or PM. That way, everyone with a similar problem can benefit.

Thanks. :)
Hack at 2007-11-11 20:42:28 >
# 2 Re: Visual Basic code for returning associated values of selected items
What code do you have for this so far?
Hack at 2007-11-11 20:43:30 >
# 3 Re: Visual Basic code for returning associated values of selected items
Krishnan: What kind of control are you using to display the rows and columns of data?
Phil Weber at 2007-11-11 20:44:29 >