+ Reply to Thread
Results 1 to 11 of 11

Populate a UserForm

  1. #1
    Registered User
    Join Date
    12-14-2007
    Location
    Georgia
    Posts
    78

    Populate a UserForm

    I have some textboxs and some comboboxs, on a user form I want them to populate according to the row the cell is selected on.

    Example:

    cell c15 is selected,

    UserForm1 Textbox2 populates with value of A15
    UserForm1 Textbox1 populates with value of D15
    UserForm1 Combobox2 populates with value of F15

    And is the user changes a value I need it to update the cell.

    Thank You for the help.
    Excel 2007 SP1

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    they are achieved like this
    Please Login or Register  to view this content.
    Not all forums are the same - seek and you shall find

  3. #3
    Registered User
    Join Date
    12-14-2007
    Location
    Georgia
    Posts
    78
    Ok, thank you this is what I have.

    Please Login or Register  to view this content.
    Module is

    Please Login or Register  to view this content.
    Which seems to work good, But what do I need to do to also make it change the cell value If they change the data on the form.?
    Last edited by WHWALDREP; 03-07-2008 at 09:13 AM.

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    they are achieved like this
    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  5. #5
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    For the form to change the data on the sheet try:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-14-2007
    Location
    Georgia
    Posts
    78
    One other question and thank you for all your help that worked great.

    If the user selects rows 10 - 15 How can I make it change all of them, and display only common info.
    Example

    if mfg = A-B on 10-15 display the manufacturer and if I change cost it would change on all 5 rows.

    Thank you so much.

  7. #7
    Registered User
    Join Date
    12-14-2007
    Location
    Georgia
    Posts
    78
    Ok how can I make this work?

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    12-14-2007
    Location
    Georgia
    Posts
    78
    Ok this what I have thus far. But now it changes the column of rows that is selected, I need it to change column B when multiply rows are selected. Thanks for the help.

    Please Login or Register  to view this content.

  9. #9
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    This will put the userform's value from Contol "lead" into cell B of every selected row.
    Please Login or Register  to view this content.
    Last edited by mikerickson; 03-08-2008 at 11:13 PM.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  10. #10
    Registered User
    Join Date
    12-14-2007
    Location
    Georgia
    Posts
    78
    Quote Originally Posted by mikerickson
    This will put the userform's value from Contol "lead" into cell B of every selected row.
    Please Login or Register  to view this content.
    the whole rows a not selected just a range of rows like C1:C15 or E13:E53


    Thanxs

  11. #11
    Registered User
    Join Date
    12-14-2007
    Location
    Georgia
    Posts
    78
    Heres what I got it works but does not look like it was the best way.

    Please Login or Register  to view this content.

+ 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