+ Reply to Thread
Results 1 to 7 of 7

Listbox1 content doesn't appears

  1. #1
    Registered User
    Join Date
    04-03-2019
    Location
    Brazil, SP
    MS-Off Ver
    2010
    Posts
    7

    Unhappy Listbox1 content doesn't appears

    Hello,

    I need some help with my code in VBA.
    I use a listbox1 to bring values from some table. The search identify the values but doesn't show them inside the listbox.

    When I use another code to send this data inside this listbox to another cells, also doesn't appear anything

    There's an image attached

    [IMG]
    Please Login or Register  to view this content.
    Last edited by kevinpb; 04-05-2019 at 11:08 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Listbox1 content doesn't appears

    You may have to supply a sample, there's no way to test this code without the workbook.


    One thing is
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Would come out as
    Cad_0 is there really a range called Cad_0?

    Anyway supply a sample .

  3. #3
    Registered User
    Join Date
    04-03-2019
    Location
    Brazil, SP
    MS-Off Ver
    2010
    Posts
    7

    Re: Listbox1 content doesn't appears

    Attachment 618728


    Hello Davesexcel!

    Yes I have cad_0 until cad_23
    My data table it's a simple one.
    Please Note the image about the sample




    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Listbox1 content doesn't appears

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Registered User
    Join Date
    04-03-2019
    Location
    Brazil, SP
    MS-Off Ver
    2010
    Posts
    7

    Re: Listbox1 content doesn't appears

    Sorry!

    Now I think it's correct.

    Please check the attched file. I also put an image showing the problem: listbox1 doesn't show my data when I run VBA code
    Attached Images Attached Images
    Attached Files Attached Files

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

    Re: Listbox1 content doesn't appears

    The problem is that you have misspelled variables in preenchersearchall.

    In that part of the code you are using both linhalistbox and linhalistbox1.

    Try this, and try adding Option Explicit at the top of all the modules to help avoid such a problem in the future.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  7. #7
    Registered User
    Join Date
    04-03-2019
    Location
    Brazil, SP
    MS-Off Ver
    2010
    Posts
    7

    [SOLVED]Re: Listbox1 content doesn't appears

    Thanks! That works!

    I'll continue programming and let you know

+ 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. Combine the content when the customer appears twice
    By NewtoVBA1 in forum Excel General
    Replies: 0
    Last Post: 08-02-2017, 09:26 AM
  2. Select listbox1 item and Press EDIT button to make changes in listbox1 values
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2014, 08:36 AM
  3. [SOLVED] Highlight a cell if its content doesn't match another cells content
    By noxygen in forum Excel General
    Replies: 4
    Last Post: 04-12-2012, 04:36 AM
  4. Replies: 4
    Last Post: 12-27-2011, 06:20 PM
  5. Get a cell to tell if/ witch sheet content on a row appears on
    By Thomasha in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-12-2010, 07:43 PM
  6. Auto fit-content doesn't work with merged cells...?
    By leroy in forum Excel General
    Replies: 3
    Last Post: 12-10-2006, 04:17 AM
  7. [SOLVED] Appending to a Cell doesn't keep format of existing content
    By DejaUser in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2006, 05:45 PM

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