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 February 21st, 2014, 07:51 AM
Registered User
 
Join Date: Feb 2014
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default I Need Help Vba Code Automatically Sort Rows Largest To Smallest

Hi

I Need Help Vba Code Automatically Sort Rows Largest To Smallest IF Cell G > 50% And Cell D > 1%
 
Old February 22nd, 2014, 04:20 PM
MikeSmith88
Guest
 
Posts: n/a
Default

Have you tried using the Record Macro feature in VBA? This feature will record the code when you are working in the Excel environment. You then stop recording and go view the code in the code editor.
 
Old February 22nd, 2014, 04:23 PM
Registered User
 
Join Date: Feb 2014
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by MikeSmith88 View Post
Have you tried using the Record Macro feature in VBA? This feature will record the code when you are working in the Excel environment. You then stop recording and go view the code in the code editor.




I need edit this code work automatically


Sub sort()
'
' sort Macro
Selection.sort Key1:=Range("N7"), Order1:=xlDescending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal

End Sub

can help me





Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically Generate Database Rows TattieSoup Visual Studio 2008 0 August 27th, 2009 06:09 PM
Automatically inserting rows at varied intervals Peskarik Excel VBA 0 August 14th, 2008 02:24 AM
Return Largest Number Neal XML 3 September 15th, 2006 05:28 AM
Automatically Applying Advanced Filter / Sort bridog39 Access 4 November 24th, 2005 04:18 PM
Automatically Finding and Deleting Blank rows Romulus Excel VBA 3 October 18th, 2003 09:04 PM





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