+ Reply to Thread
Results 1 to 2 of 2

VBA Sort 1004 Run-time error

  1. #1
    Forum Contributor
    Join Date
    07-16-2009
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2013
    Posts
    114

    VBA Sort 1004 Run-time error

    Hi, I'm having problems with a sort macro I wrote


    This Macro works. except that some numbers need to be stored as text so it doesn't sort properly . the # of columns are always the same but the row count is variable.
    Please Login or Register  to view this content.
    I tried changing the macro to

    Please Login or Register  to view this content.
    but now it gives me a 1004 run-time error.

    I'm sure its just a simple error on my part but I can't for the life of me figure it out.

    any help would be much appreciated.

    Chris
    Last edited by Code Flunkie; 01-21-2010 at 10:12 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA Sort 1004 Run-time error

    Hello Chris,

    Simple typo error.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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