+ Reply to Thread
Results 1 to 4 of 4

How to add values from userform to a table in excel worksheet

  1. #1
    Registered User
    Join Date
    10-05-2012
    Location
    Beverly Hills
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to add values from userform to a table in excel worksheet

    Hello, I appreciate any help that I receive from you guys in advance!

    My problem is this:
    I am creating a grade book in excel, and have created a user form with list boxes that are populate based on assignments and student's ID #'s.

    I input a number into the textbox, and I want the command button I have to enter the score into the cell of the student under the correct assignment. I am not sure what avenue to take, and any help would be appreciated. I already have the value's into variables, I just can't figure out the line of code that actually searches through the quizes for the right one, than the student id numbers.

    Example

    gradebook.jpg
    Attached Images Attached Images
    Last edited by hawaii; 11-18-2012 at 04:20 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: How to add values from userform to a table in excel worksheet

    You can use the Listindex property of both comboboxes to locate the row and column you want.

    Something like this where I've guessed the control names.
    Please Login or Register  to view this content.
    Last edited by Norie; 11-18-2012 at 04:52 AM.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    10-05-2012
    Location
    Beverly Hills
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to add values from userform to a table in excel worksheet

    Thanks, I had to make an edit to the col, but that worked exactly!!!

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: How to add values from userform to a table in excel worksheet

    Doh, column N is column 14 not 15.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1