Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 26th, 2013, 08:14 PM
Registered User
 
Join Date: Aug 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy I'm trying to sort by color

Can anyone assist me, I'm trying to sort two columns in ascending order. The first column by color and the second by data. My code is below

Range("A2").Select
Selection.Sort Key1:=Range ("E2"), _xlSortOnCellColor, xlAscending, , xlSortNormal).SortOnValue.Color = RGB(255, _ 199, 206),
Order1:=xlAscending, Key2:=Range("F2") _ , Order2:=xlAscending, MatchCase:=False, Orientation:=xlTopToBottom
__________________
Juanita





Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm trying to sort by color Nita BOOK: Beginning ASP.NET 4.5 : in C# and VB 1 August 26th, 2013 08:17 PM
Dynamic sort key components on xsl:perform-sort apollo13 XSLT 5 August 10th, 2012 03:26 PM
how to sort cross tab.sort based on row total joxa83 Crystal Reports 7 March 2nd, 2006 09:12 AM
Sort on color alisonchase Excel VBA 0 July 5th, 2005 11:44 AM
Unable to sort using xsl sort command sly_jimmy_boy XSLT 3 June 17th, 2005 05:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.