Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Soundman
 
Posts: n/a
Default Blank spaces in a listbox


Hi all,

I've got a userform with a listbox. In the properties, I've selected
the row source & it works as expected. My problem is when I delete an
item out of the middle of that list, the listbow shows a blank space
instead of skipping it. I've looked at all of the properties & there
doesn't seem to be one that works on this, so I tried assigning the row
source range in VBE, but I kept getting a message that the object was
already in another module.

Does anyone have an efficient way to fix this?

Thanks


--
Soundman
------------------------------------------------------------------------
Soundman's Profile: http://www.excelforum.com/member.php...o&userid=24428
View this thread: http://www.excelforum.com/showthread...hreadid=396117

  #2   Report Post  
Jim Rech
 
Posts: n/a
Default

Did you delete a row or merely clear the cell? You must do the former.
Also, be sure to assign a name to the list range and use the name as a
RowSource. A cell address Rowsource like A1:A10 will not adjust if you
delete a row in it, whereas a named range will.

--
Jim
"Soundman" wrote in
message ...
|
| Hi all,
|
| I've got a userform with a listbox. In the properties, I've selected
| the row source & it works as expected. My problem is when I delete an
| item out of the middle of that list, the listbow shows a blank space
| instead of skipping it. I've looked at all of the properties & there
| doesn't seem to be one that works on this, so I tried assigning the row
| source range in VBE, but I kept getting a message that the object was
| already in another module.
|
| Does anyone have an efficient way to fix this?
|
| Thanks
|
|
| --
| Soundman
| ------------------------------------------------------------------------
| Soundman's Profile:
http://www.excelforum.com/member.php...o&userid=24428
| View this thread: http://www.excelforum.com/showthread...hreadid=396117
|


  #3   Report Post  
Dave O
 
Posts: n/a
Default

How about a quick bit of code that runs on startup and sorts the
relevant range?

  #4   Report Post  
Soundman
 
Posts: n/a
Default


Thanks for your help. I'll give it a try.


--
Soundman
------------------------------------------------------------------------
Soundman's Profile: http://www.excelforum.com/member.php...o&userid=24428
View this thread: http://www.excelforum.com/showthread...hreadid=396117

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Numbered List with Blank Spaces, etc. Regent Excel Discussion (Misc queries) 4 September 27th 05 01:10 AM
Counting blank and filled cells within a range. greg7468 Excel Discussion (Misc queries) 3 June 28th 05 10:41 PM
"False" filling in the blank spaces Dave O. Excel Discussion (Misc queries) 1 April 17th 05 05:25 PM
blank cells R.VENKATARAMAN Excel Discussion (Misc queries) 1 April 6th 05 10:25 AM
VLOOKUP, OFFSET, MATCH PROBLEM, HELP? Steve Excel Worksheet Functions 0 January 30th 05 09:11 PM


All times are GMT +1. The time now is 07:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"