+ Reply to Thread
Results 1 to 5 of 5

Excel Sort Macro is just giving me a "400" messagebox!

  1. #1
    Registered User
    Join Date
    01-24-2007
    Posts
    5

    Question Excel Sort Macro is just giving me a "400" messagebox!

    Please Login or Register  to view this content.
    When I run this, it does nothing to the order of the form, and instead pops up a message box saying "400".

    Help ?

    Gausie

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Gausie

    I built a small test file with data in b6 to h10 and a value in b23.

    Your code worked ok for me and sorted as expected.

    I modified your macro to remove alll the if statements whilst still giving you the flexabilty of entering a value in b23 to determine the sort by value


    Please Login or Register  to view this content.
    If you are still having problems can you reply and attach a copy of your workbook

  3. #3
    Registered User
    Join Date
    01-24-2007
    Posts
    5
    Sorry for the late reply - but I'm still getting a message box saying "400". I've attached the workbook, please download it and take a look.

    Thanks

    Gausie
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-24-2007
    Posts
    5
    Fixed it!

    The code that I was sent referred to cell 23 instead of 24!

    My fault!

    Gausie

  5. #5
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Glad you got it sorted it out

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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