Results 1 to 6 of 6

Delete blank spaces from a named range

Threaded View

  1. #1
    Forum Contributor
    Join Date
    08-29-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    103

    Delete blank spaces from a named range

    A little back-story:

    When trying to AddItem to listbox1, I got the following error:

    Run-time error '70': Permission denied
    After a bit of research, this is due to having my listbox1 RowSource bound to a named range. MSDN gave a solution here: solution, however I had a bunch of blank rows from testing. Now I'm trying to remove the blank rows from the named range with code in case users also do this. There's quite a few good examples on the net of removing blank spaces from listboxes, or from rows or columns, but I couldn't find anything specific to named ranges in Excel other than: this code, which keeps giving me errors. So, I need to know how to remove blank cells from a named range with vba. Thank you,
    Last edited by Taemex; 12-10-2014 at 03:54 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 11-26-2015, 12:46 PM
  2. Replies: 1
    Last Post: 10-17-2014, 02:16 AM
  3. How to delete named range with #REF?
    By m3atball in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-02-2014, 02:09 AM
  4. Consolidated List from a range with blank spaces
    By dymention2 in forum Excel General
    Replies: 1
    Last Post: 12-17-2011, 04:21 PM
  5. Non blank named range from named range with blanks
    By goels in forum Excel General
    Replies: 3
    Last Post: 10-24-2011, 12:54 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