+ Reply to Thread
Results 1 to 1 of 1

VBA for sorting columns and rows

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    Guam
    MS-Off Ver
    Excel 2010
    Posts
    3

    VBA for sorting columns and rows

    Update:

    I have finally worked out a way to sort columns but is a bit slow. The file is attached here as a zip file and dated 2014-10-31.

    If anyone can help me with sorting out the rows under each of the sorted columns which maybe one or 20, 30, 40 plus. I want to keep the rows which have numbers in the sorted columns and hide the rest of the rows.

    Regards








    I have attached a zip file with my spreadsheet. This spreadsheet is used to have a list of projects in columns and items of work in rows for each project I have spent a great deal of time over the past few weeks to try and code this spreadsheet to do what is need but have failed to get this done.

    So I am seeking help for VBA code to accomplish two things.

    One to sort the projects (columns) by the criteria selected in one or all of the dropboxs in columns D. I can do this with selecting one criteria but two or more is something I have not been able to code correctly. I would like the columns to sort out and stay visible and those projects (columns) which do not meet the sort criteria and empty columns are hidden from view.

    Two to sort the rows after the projects (columns) have been sorted. I would like the rows which has cells with data in them in the column for each project to be seen and all of the rest of the rows to be hidden. I have the same problem here, I can sort out the rows on one project but if there are two or more projects which have data in different row cells I have not been able to code to keep these rows visible.

    I have stripped my macros and buttons out of the attached spreadsheet, basically because the code work I have done is not really doing what I need and it was not very good code.

    If anyone can help me out here, I would be very grateful.
    Last edited by vietafghantx; 10-31-2014 at 01:35 AM. Reason: Update

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] alphabetic sorting of 4 columns when one of the columns has 2 rows
    By jnribbit in forum Excel General
    Replies: 10
    Last Post: 08-05-2013, 09:45 PM
  2. Sorting columns by rows
    By transportplanner in forum Excel General
    Replies: 11
    Last Post: 04-21-2010, 09:26 AM
  3. sorting out columns but only for some rows
    By Sam in forum Excel General
    Replies: 5
    Last Post: 04-23-2005, 11:06 AM
  4. [SOLVED] How to keep rows together when sorting columns?
    By Amit in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-28-2005, 01:06 PM
  5. [SOLVED] Sorting rows AND columns
    By 3D in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2005, 11:06 PM

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