Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Remove spaces between items in a dropdown list

I have dropdown lists (Data Validation List) that reflect spaces
between items. A list with the range of A1:A6 before zeros are hidden
may look like this:

Apples
Oranges
0
0
Lemons
0

I would like for the list to look like this:

Apples
Oranges
Lemons
0
0
0

Can someone suggest a macro for this? Thanks.

Michael
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Remove spaces between items in a dropdown list

hidden rows will still appear in your validation dropdown

you could delete the rows with zeros. or copy the 'good' names to a new
table and use that in your validation

"Michael Lanier" wrote in message
...
I have dropdown lists (Data Validation List) that reflect spaces
between items. A list with the range of A1:A6 before zeros are hidden
may look like this:

Apples
Oranges
0
0
Lemons
0

I would like for the list to look like this:

Apples
Oranges
Lemons
0
0
0

Can someone suggest a macro for this? Thanks.

Michael


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
dropdown list contains 5 items want to add 100 how wojick Excel Discussion (Misc queries) 1 April 30th 08 12:50 PM
dropdown list contains 5 items want to add 100 how wojick Excel Discussion (Misc queries) 1 April 30th 08 11:15 AM
How do I associate calculations with items in a dropdown list? stephmon Excel Programming 1 November 29th 06 04:45 AM
is it possible to re-size or format list items in dropdown box? jc Excel Discussion (Misc queries) 1 August 14th 05 12:01 AM
dynamic list to remove duplicates and spaces ? Keith[_13_] Excel Programming 4 June 29th 04 01:38 AM


All times are GMT +1. The time now is 08:19 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"