DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2007

    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.
    Last edited by Hack; 11-08-2007 at 12:12 PM. Reason: Removed Email address

  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    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.


  3. #3
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    What code do you have for this so far?

  4. #4
    Join Date
    Nov 2003
    Portland, OR
    Krishnan: What kind of control are you using to display the rows and columns of data?
    Phil Weber

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Replies: 0
    Last Post: 08-02-2007, 02:08 AM
  2. Microsoft's C++ bigotry
    By Phil Weber in forum .NET
    Replies: 632
    Last Post: 10-01-2003, 12:00 AM
  3. YAG's status report - Feb 28, 2002
    By Seth Grossman [MSFT] in forum vb.announcements
    Replies: 0
    Last Post: 02-28-2002, 08:08 PM
  4. Replies: 0
    Last Post: 05-11-2001, 10:52 AM
  5. Visual Basic Source Code Generator
    By sunil bhagane in forum vb.announcements
    Replies: 0
    Last Post: 03-04-2001, 04:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.