+ Reply to Thread
Results 1 to 4 of 4

code for sort my database

  1. #1
    Forum Contributor
    Join Date
    01-29-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    434

    code for sort my database

    hello
    we enclosed here my sample data file

    we want to sort data on Colum D (Cat & No) with following order
    SH MDR ODR VR

    currently when we sort data with sort command then data sort this order
    MDR odr sh Vr

    pls suggest me vba code

    thank you so much
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: code for sort my database

    try this on that sheet:
    Please Login or Register  to view this content.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Forum Contributor
    Join Date
    01-29-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    434

    Re: code for sort my database

    hi tehneXus

    Actually ur currently code not sorting data as per my order
    my order is following

    SH.. MDR.. ODR....VR

    currently ur macro sort this order
    mdr oDR SH VR

    thanks for responce

  4. #4
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: code for sort my database

    Ah sorry, copied the wrong line from your post. You can just change the order of in the array in 3 lines of the code, e.g.
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

+ 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] VBA for Sort Existing Database
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 09-21-2013, 01:19 PM
  2. [SOLVED] How to sort the data by item code first, then sort them by date?
    By Zecond in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-04-2013, 01:55 AM
  3. database :Sort
    By Balloony2 in forum Excel General
    Replies: 2
    Last Post: 11-21-2007, 06:50 PM
  4. How can i sort a database on numbers?
    By Sylvester in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-01-2006, 02:05 PM
  5. Sort a database
    By jeffP in forum Excel General
    Replies: 1
    Last Post: 01-26-2006, 10:55 PM

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