+ Reply to Thread
Results 1 to 2 of 2

Why does Range.Sort work typed in one way but not another?

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    Springdale, Arkansas
    MS-Off Ver
    Excel 2007
    Posts
    13

    Why does Range.Sort work typed in one way but not another?

    When I have the following, the code does not work:

    Please Login or Register  to view this content.

    However, the following code does work:

    Please Login or Register  to view this content.

    Why does the first way not work?
    Novice Programmer

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Why does Range.Sort work typed in one way but not another?

    Try it without the parentheses.

    R.Sort WS.Columns(4), xlAscending, WS.Columns(11), , xlAscending

+ 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