+ Reply to Thread
Results 1 to 2 of 2

Macro to sort by color

  1. #1
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Ventura, united States
    MS-Off Ver
    Excel 2010
    Posts
    346

    Macro to sort by color

    I need a macro to sort several tabs by cell color, putting the colored cells on the top. When I use the macro recorder it records this:


    Please Login or Register  to view this content.
    I need it to not include the worksheet name so that it will work on multiple tabs, but when I take the worksheet name out it doesn't work. Any ideas why this code doesn't run?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Macro to sort by color

    hi
    try replacing "activeworksheet" with "activesheet"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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