+ Reply to Thread
Results 1 to 28 of 28

populate textbox from a listbox when data contains either decimals or cel properties

Hybrid View

  1. #1
    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: populate textbox from a listbox when data contains either decimals or cel properties

    Hi djeetn069
    I haven't tested the code thoroughly but it has been tested.
    Please note that I've changed ListBox to three columns to get the alignment. I've also set Rng3, Rng4 and Rng5 to look at
    LookAt:=xlPart
    in the Subtract/Add Button Codes. Let me know of issues.
    Attached Files Attached Files
    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.

  2. #2
    Registered User
    Join Date
    03-12-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: populate textbox from a listbox when data contains either decimals or cel properties

    Hi John,

    Concerning the problem I had with the alignment of the populated listbox, this works exactly as I want now, so thanks a lot!
    The second problem hasn't been solved with the proposed solution though. The problem remains if a part of the value from the first "Lookat:= XlPart" is defined elsewhere, for instance: select the last row in "test v2.xlsm" and try to add 1pc. You'll notice that it will change the dimensions value of the row above.
    I've also noticed that the problem also remains when i try to add a pc to the 1,5mm thick sheet. My best guess, because of the decimal number... you'll notice a msgbox "material not found"...Any more ideas?

    Your help is much appreciated!
    Sincerely,

  3. #3
    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: populate textbox from a listbox when data contains either decimals or cel properties

    Hi djeetn069
    Does your actual worksheet have the same structure (number of columns, etc) and layout as your attached sample (column headers, etc)?

  4. #4
    Registered User
    Join Date
    03-12-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: populate textbox from a listbox when data contains either decimals or cel properties

    In fact it does. First line = header, the rest is practically the same except that the value can variate. For instance, the First row can also contain Ø 4 instead of 1000x2000. Everything else remains...

  5. #5
    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: populate textbox from a listbox when data contains either decimals or cel properties

    Hi djeetn069

    Is the ONLY thing we EVER want to change is "in stock" quantity in Column F?

  6. #6
    Registered User
    Join Date
    03-12-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: populate textbox from a listbox when data contains either decimals or cel properties

    Good question John! Because for now i'm stuck on that issue indeed. But to see the complete picture, later on i want to add following option: when you manually write something in the textboxes, it will also appear as a new line in the listbox. (let us say, as beeing a new type of sheet). But you can put it that way that FOR NOW, i only want to change the stock quantity in column F.

  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: populate textbox from a listbox when data contains either decimals or cel properties

    All right...let me play with this for a bit...I'll get back to you.
    FOR NOW, i only want to change the stock quantity in column F.

  8. #8
    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: populate textbox from a listbox when data contains either decimals or cel properties

    Hi djeetn069


    It's going to take me a bit to sort this out...perhaps a different approach...get back to you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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