Results 1 to 5 of 5
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sort array (WordXP SP3)

    Hello

    I need to sort an array.
    the array goes through the document searches for items & when found places into an array. then i need to sort the array.
    i did a search to get previous posts however they appear to be in word97 eg
    WordBasic SortArray a() false.

    any ideas
    diana

    If i add this code in WordXP - when it gets to this line the code just bombs.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: sort array (WordXP SP3)

    Try
    <code>
    WordBasic.SortArray a()
    </code>
    SortArray is a method of the WordBasic object, so the way to call it is <code>WordBasic.SortArray</code>. You don't need the False argument here, but if you had needed it, you should have put a comma between a() and False.

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: sort array (WordXP SP3)

    In past threads, some have rumored the demise of the WordBasic object in VBA. But so far, it seems to have survived. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

  4. #4
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: sort array (WordXP SP3)

    ok thanks for that...ill give that ago

    many thanks
    diana :-)

  5. #5
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: sort array (WordXP SP3)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •