+ Reply to Thread
Results 1 to 4 of 4

Referencing ListBox value in UserForm issues

  1. #1
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Referencing ListBox value in UserForm issues

    I am getting some weird results from my code. I have a userform with two seperate listboxes and I simply am trying to show a message box warning if one of them (or both) does not contain a selection i.e. value and return the user to the form and not run the rest of the code.

    My code is this ( I have left after else blank because it is not relevant)
    Please Login or Register  to view this content.
    It is making excel behave very weirdly, because sometimes it works fine and others only partially and others not at all- but there is no discernible pattern. So it might be that the code is fine but something else is going on, but I need to be able to say whether it is the issue or not so I can narrow down what is going wrong.

    In case it matters - I am working in manual calculation mode.

    Thanks
    Last edited by strud; 09-09-2014 at 05:10 AM.

  2. #2
    Registered User
    Join Date
    01-20-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Referencing ListBox value in UserForm issues

    If you post a workbook it will be much easier to help you.
    +++ If I helped please add reputation +++

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Referencing ListBox value in UserForm issues

    I suggest you try checking the Listindex instead:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  4. #4
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Referencing ListBox value in UserForm issues

    Thanks romperstomper that got it, works perfectly now.

+ 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. Transfer Data From One Userform Listbox to Another Userform Listbox with 11 columns
    By sparkoft in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-18-2013, 10:54 AM
  2. userform listbox
    By tsiguy96 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-14-2013, 11:09 PM
  3. Listbox to Listbox, no duplicates & submitting same UserForm data for each Listbox entry.
    By jamieswift1977 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2012, 12:18 PM
  4. Listbox Issues / Errors with UserForm
    By Chris270 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-04-2012, 07:14 AM
  5. [SOLVED] multi-column listbox on userform, multiple issues
    By KR in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2006, 04:00 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