+ Reply to Thread
Results 1 to 5 of 5

Populate worksheet textboxes from listbox

  1. #1
    Forum Contributor
    Join Date
    10-11-2013
    Location
    Austria
    MS-Off Ver
    Excel 2010
    Posts
    136

    Populate worksheet textboxes from listbox

    I'm having Trouble trying to bring values into a worksheet.
    I have 9 textboxes that will be filled from an external sheet. I perform a search over a listbox and double click the result I want.
    If I were to populate textboxes on a userform I would use
    Please Login or Register  to view this content.
    Obviously "ME.Controls" doesn't really work on a worksheet. I can make one work by saying
    Please Login or Register  to view this content.
    but
    Please Login or Register  to view this content.
    doesn't work either
    how do I get around this?

    Thanks for the helps!

    Michael

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

    Re: Populate worksheet textboxes from listbox

    What type of controls are they, Forms or ActiveX?

    You can refer to Forms textboxes like this,
    Please Login or Register  to view this content.
    and ActiveX like this.
    Please Login or Register  to view this content.
    Last edited by Norie; 08-10-2015 at 08:38 AM.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    10-11-2013
    Location
    Austria
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Populate worksheet textboxes from listbox

    They're all activeX
    I'd like to loop though them though, like the UF example I had.

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

    Re: Populate worksheet textboxes from listbox

    You can use the 2nd code I posted then, just replace 'TextBox1' with the names of the textboxes.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-11-2013
    Location
    Austria
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Populate worksheet textboxes from listbox

    Thanks Norie, I had almost had it, except for the "Object"
    Please Login or Register  to view this content.
    Works a treat, thanks for the help!

+ 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: 0
    Last Post: 02-04-2015, 03:46 PM
  2. [SOLVED] Populate textboxes from listbox.click
    By wingnut74 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-30-2013, 05:07 PM
  3. [SOLVED] Populate textboxes from listbox item cellrow to modifie cellvalue and send it back to exce
    By prohmex in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-18-2013, 06:43 PM
  4. [SOLVED] VBA: transfer values of textboxes & items from listbox to worksheet
    By hydz1213 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2013, 05:46 AM
  5. Excel 2003: Worksheet cells populate textboxes on a userform
    By SHU_STU_0609 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2013, 01:24 AM
  6. Userform populate listbox with search from multiple textboxes
    By chendysworld in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-12-2012, 11:12 AM
  7. [SOLVED] Populate listbox columns with entries from textboxes on userform
    By AndyE in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2012, 11:05 PM

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