+ Reply to Thread
Results 1 to 10 of 10

Userform Find Cell From ComboBox Value And Write To Adjacent Cell

  1. #1
    Registered User
    Join Date
    04-06-2014
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    5

    Userform Find Cell From ComboBox Value And Write To Adjacent Cell

    I am having a problem using data from my combobox to find the cell on the worksheet and write to an adjacent cell.

    Worksheet name is "A ENTREGAR C001-999"
    ComboBox that provides the search value is "cmbCliente"
    ComboBox that has the data to enter in another cell is "cmbCuerpos"
    CommandButton name's "cmdModificar"

    I would like to be able to take the text from "cmbCliente", find this text in Col A of worksheet "A ENTREGAR C001-999" and write the Value of "cmbCuerpos" in the Col C. when "cmdModificar" is pressed.

    Thanks in advance!

  2. #2
    Registered User
    Join Date
    03-28-2014
    Location
    Hertford, England
    MS-Off Ver
    Excel 2010,2013
    Posts
    38

    Re: Userform Find Cell From ComboBox Value And Write To Adjacent Cell

    Hi,

    Try This:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-06-2014
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Userform Find Cell From ComboBox Value And Write To Adjacent Cell

    Thank you foundy, but itīs not working. I'll try to be more specific.

    I would like to be able to take the text from "cmbCliente" (ComboBox), find this text in Col A of worksheet "A ENTREGAR C001-999" and write the Value of "cmbCuerpos" (and another variables as "cmbMadera", "cmbColchon", "cmbMesa", etc) in the Col C (and D, E, F, G, etc.) when "cmdModificar" is pressed.

    A little hint, the Col A, where I search for values, is formed by a formula.

    Thanks!

  4. #4
    Registered User
    Join Date
    03-28-2014
    Location
    Hertford, England
    MS-Off Ver
    Excel 2010,2013
    Posts
    38

    Re: Userform Find Cell From ComboBox Value And Write To Adjacent Cell

    Hi pferder,

    Are there duplicate values in column A ?

  5. #5
    Registered User
    Join Date
    04-06-2014
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Userform Find Cell From ComboBox Value And Write To Adjacent Cell

    No Mr. Foundy, they are all unique.

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

    Re: Userform Find Cell From ComboBox Value And Write To Adjacent Cell

    How have you populated cmbCliente?

    If it's from a contiguous range with unique values then you can use the combobox's ListIndex to find the row the selected value is on.

    Alternatively you could use something like this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Userform Find Cell From ComboBox Value And Write To Adjacent Cell

    Another...
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  8. #8
    Registered User
    Join Date
    04-06-2014
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Userform Find Cell From ComboBox Value And Write To Adjacent Cell

    Norie! it worked perfectly, thank you a lot! How can a I populate the ComboBoxes from a column in the same sheet?

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

    Re: Userform Find Cell From ComboBox Value And Write To Adjacent Cell

    Aren't you already doing that?

    If you aren't you could use something like this, where A2 is the row the data starts in.
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    04-06-2014
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Userform Find Cell From ComboBox Value And Write To Adjacent Cell

    Thanks Norie and foundy!!!!!! It's working perfectly

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 07-29-2013, 12:35 PM
  2. Replies: 1
    Last Post: 07-29-2013, 10:48 AM
  3. VBA code to find and delete cell contents based on userform combobox selections
    By anfdrew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2013, 04:13 PM
  4. range find data and write to adjacent cell
    By cdy3900 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2013, 11:32 PM
  5. Userform Find Cell from ComboBox Value and write to adjacent cell
    By msommerf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2010, 11:38 AM

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