+ Reply to Thread
Results 1 to 4 of 4

VBA Code to add missing data in listbox

  1. #1
    Forum Contributor
    Join Date
    07-03-2019
    Location
    Victoria, Australia
    MS-Off Ver
    Office 365
    Posts
    126

    VBA Code to add missing data in listbox

    Hi

    I have a missing data problem. With the code below a user on here help me remember that when i change integer number brings the row number down but i'm now facing another issue at the bottom of the list box it is missing data. I thought as shown in the code below the "C:C" would read the entire column and if i add the Cell and row number in eg: C10:C12 all i get is a blank list box. I want to be able to add data into the rows and not keep having to change the code.


    Please Login or Register  to view this content.
    Thanks in advance
    Donald

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,257

    Re: VBA Code to add missing data in listbox

    If you have blank cells in C1:C5 you will miss data. I'd suggest something like:

    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: VBA Code to add missing data in listbox

    Not sure about using CountA() - that would depend what is in the cells above C6. Try like this instead:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  4. #4
    Forum Contributor
    Join Date
    07-03-2019
    Location
    Victoria, Australia
    MS-Off Ver
    Office 365
    Posts
    126

    Re: VBA Code to add missing data in listbox

    Thanks both Rorya and WideBoyDixon they have work successfully.

+ 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. My Code is missing data I need to catch
    By CMOT Dibbler in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 01-02-2021, 07:39 AM
  2. Find missing dates in Listbox
    By Axmed.cm in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-16-2020, 02:24 AM
  3. [SOLVED] listbox to table array continually missing last row
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2018, 01:06 PM
  4. [SOLVED] VBA code to show updated data in the listbox after the data is entered and button clicked
    By chin67326 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-25-2015, 04:23 AM
  5. 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
  6. Print out listbox data code
    By herukuncahyono in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-12-2010, 08:50 PM
  7. [SOLVED] Missing vbTab in listbox
    By kurb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2005, 05:06 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