+ Reply to Thread
Results 1 to 4 of 4

Remove blank cells from the list

  1. #1
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Remove blank cells from the list

    Hi all,

    I have a list of names that feeds a listbox (forms). With the following code I want to remove names from the list one by one. The code works, but there is a part of it still missing. The code moves value from the list but leaves a gap there (blank cell), therefore listbox also reflects it and it doesn't look professional. Any idea?

    By the way, 'sort' is not an option. The code should just to remove blank cell.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Remove blank cells from the list

    try this maybe
    Please Login or Register  to view this content.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Remove blank cells from the list

    Hi, mate. Sorry, I was in a meeting, so couldn't pick it up. Yes, your code works. I'm just not sure if it will not upset formulas as deleting cell and shifting cells up is not very friendly to formating and formulae. What do you think? I am not able to test your code on the original workbook yet.

  4. #4
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Remove blank cells from the list

    Yes, as I predicted, it messed up all it could. Is there an alternative code to this?

+ 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