+ Reply to Thread
Results 1 to 4 of 4

populating spreadsheet from userform

  1. #1
    Registered User
    Join Date
    01-02-2012
    Location
    Ebbw Vale
    MS-Off Ver
    Excel 2007
    Posts
    20

    populating spreadsheet from userform

    hello,

    really hope someone can help me with this...

    For one of my assignments, i have been asked to create a payroll system.
    I have created a userform, and in that i have a combo box with a selection of names in, which i brought in from names on my spreadsheet.

    the whole things works fine but i am just stuck on one last thing, and that is storing the "net pay" textbox value in the cell to the right of the cell holding the name that was selected from the combo box...

    I am at my wits end with this i've tried all sorts and being such a beginner with all this, finding it ridiculously difficult

    Look forward to some reponse! PLEASE ! :p


    Cerys

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: populating spreadsheet from userform

    Probably you still have your Texbox and chombo box names from 1 to k so you can save them all as:

    Please Login or Register  to view this content.
    where you need to define rng as begging of the range in desired sheet.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: populating spreadsheet from userform

    Here's a very quick example that assumes the names are listed in Column A & the net pay is to go in the adjacent cell. It uses the ComboBox's ListIndex property to get the row number
    Attached Files Attached Files
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    01-02-2012
    Location
    Ebbw Vale
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: populating spreadsheet from userform

    This is awesome just what i need. I have applied it to my own project and when i run it, the net pay value is against the name below the one selected, i tried to change the number in the code from 1 to 0, but i got an error...


    Any ideas?

    Many thanks

    EDIT: solved
    thanks a lot for your help
    Last edited by 10121730; 05-13-2012 at 04:50 PM. Reason: update

+ 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