+ Reply to Thread
Results 1 to 5 of 5

Userform listbox adding rowsource runtime error 380

  1. #1
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    334

    Userform listbox adding rowsource runtime error 380

    I have a multipage userform;
    - Page 1 has listbox1 and textbox1
    - page 2 has listbox2

    Basically my code searches for the value in textbox1 and outputs the result into listbox1.
    Then my code uses the selected value in listbox1 to perform another search and the results should appear in listbox2
    It also adds a worksheet with the name of the selected listbox1.value


    Please Login or Register  to view this content.
    Everything works fine except for this bit:
    Please Login or Register  to view this content.
    I keep getting a runtime 380 error & I have no idea what the issue is.

    Any assistance appreciated!

  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: Userform listbox adding rowsource runtime error 380

    Does the sheet name have any spaces in it?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    334

    Re: Userform listbox adding rowsource runtime error 380

    Not always, but it is a possibility.

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Userform listbox adding rowsource runtime error 380

    You should enclose the name in quotes
    Please Login or Register  to view this content.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  5. #5
    Forum Contributor
    Join Date
    11-04-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    334

    Re: Userform listbox adding rowsource runtime error 380

    Thanks Norie & D.
    Problem solved.

+ 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. runtime error on listbox click
    By kmakjop in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-24-2015, 09:17 AM
  2. Update Listbox Rowsource when combobox_change in userform
    By hifliers in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2014, 06:50 AM
  3. Runtime Error Listbox
    By matthew290683 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-27-2012, 01:58 AM
  4. [SOLVED] VBA: UserForm ListBox Column Headings RowSource = Named Range
    By Hudas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2012, 02:21 AM
  5. Rowsource property error in combobox userform
    By asha3010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-15-2010, 08:06 AM
  6. [SOLVED] ???Help??? Userform.Listbox.rowsource = ???
    By Steve Sparti in forum Excel General
    Replies: 0
    Last Post: 03-01-2006, 05:50 PM
  7. [SOLVED] Initialize Userform, Populate Listbox, Dynamic RowSource?
    By RShow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2005, 03: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