Macro to sort values in list without 0's (zeros)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi

I have a some lists where I have made a macro so the user can choose to
add a record to those lists and the macro goes and adds the record to
the bottom of the list. The list in then picked up by drop down menus
where the user can select a record.

The problem is when the user adds a new record, it gets put at the
bottom of the list and will thus show up at the bottom of the drop down
box. I don't know much VB, but I usually get around this by recording a
macro and then copying the code so it activates when my command button
is pushed.

So my list has zeros in it, and I want it sorted A-Z, if i do this is
will put the zeros at the top, then alphabetical. I want alphabetical
with the zeros at the bottom. This would invlove 2 sorts, one on the
whole list, Z-A which would put the zeros at the bottom, and then one
A-Z on the part of the list with no zeros. But the part without the
zeros is never going to be the same as more records are added...

Any know some vba code I could copy in to fix this?

Thanks

.



Relevant Pages

  • Re: infinity
    ... from that two different infinite expansions in the same base can ... infinite lists are easily constructible in design ... only one sequence with all zeros, and only one sequence with all ones. ... For having one or more zeros with one or more ones there are infinitely ...
    (sci.math)
  • Formula to eliminate zeros
    ... I have a column of values that is 200 rows tall. ... concise list without 175 to 200 zeros. ... not have to filter the numerous lists with each job with a drop down ... the five digit option numbers to appear at the top of the list. ...
    (microsoft.public.excel.misc)
  • finding a list of numbers in a vector
    ... I have a 16-element long vector of ones and zeros. ... consists of two lists of 6 ones, one touching the start and one ... If 12 boys make a chain within that circle of 16 people, ...
    (comp.soft-sys.matlab)
  • Re: how to break a for loop?
    ... I would also use lists to implement this. ... that's why I encountered stupid problem: I need to remove zeros from ... Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org ...
    (comp.lang.python)
  • Re: First sentence check
    ... Dim pos As Integer ... which is the insertion point when the macro is launched or the text ... what you need is a way to determine whether the paragraph ... It will show how many lists Word finds in your document. ...
    (microsoft.public.word.vba.general)