+ Reply to Thread
Results 1 to 4 of 4

Show data from textbox in a listbox using VBA

  1. #1
    Forum Contributor
    Join Date
    07-23-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    211

    Show data from textbox in a listbox using VBA

    Hi

    Is there a simple way to extract data put in a textbox to be shown in a listbox using VBA?

    I have a used the following code:

    Please Login or Register  to view this content.
    This only works the first time I put data in the textbox. In the second time, it throws up an invalid property error.

    Cheers

  2. #2
    Forum Contributor tkowal's Avatar
    Join Date
    11-20-2010
    Location
    Miami, Fl
    MS-Off Ver
    Excel 2010
    Posts
    150

    Re: Show data from textbox in a listbox using VBA

    The attached file may help

    Attached Files Attached Files
    Ted
    "Live Long and Prosper"

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Show data from textbox in a listbox using VBA

    Place text in text box, then run code below.
    You need to run the code after you've entered the text, as in a commanbutton.
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    07-23-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    211

    Re: Show data from textbox in a listbox using VBA

    Thankyou both. This has been a great help.

+ 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