+ Reply to Thread
Results 1 to 3 of 3

If Function To Sort Column Ascending/Descending Excel VBA

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    91

    If Function To Sort Column Ascending/Descending Excel VBA

    Hi All,

    I need a code that will do this: if the total is positive then sort descending and if it's negative, then the pivot column (just one column) will be sorted ascending. but the number of lines may change though so the total might not always be in the same cell every day

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: If Function To Sort Column Ascending/Descending Excel VBA

    Do you have a sample file that you can upload?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    07-11-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    91

    Re: If Function To Sort Column Ascending/Descending Excel VBA

    So i attached the file. and is it possible to add another sheet with another pivot with different column headers say sheet 1 pivot 1 would be as is, then copy that sheet rename it and change the headers with Test 1 and test 3, then another one with test 3 and 4, so on and so forth
    Attached Files Attached Files

+ 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