+ Reply to Thread
Results 1 to 5 of 5

Auto sort list into table

  1. #1
    Registered User
    Join Date
    03-31-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    25

    Auto sort list into table

    Hi,

    I am trying to sort the data on sheet1 into the table on sheet2 based off the currency and time ideally with a macro by pressing a button.

    Has anyone got any ideas?

    Thanks

    testC.xlsx

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Auto sort list into table

    Hi rongil20

    Try this Code in the attached.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Auto sort list into table

    Try this:-
    NB:- this code will also find Duplicate "CCY/Time" Values

    Please Login or Register  to view this content.
    Regards Mick

  4. #4
    Registered User
    Join Date
    03-31-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    25

    Re: Auto sort list into table

    Quote Originally Posted by jaslake View Post
    Hi rongil20

    Try this Code in the attached.
    Please Login or Register  to view this content.

    Thanks, that's really good however I didn't mention that I also need it to place in a new line for the same CCY and time.

    For example, if there are 2 USDs, both 1 month and 1 is 10,000,000 and other is 5,000,000. I need them both in the USD - 1m area


    Mick - your code gives me a runtime error at the line 'ray(c, 1) = k'

  5. #5
    Registered User
    Join Date
    03-31-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    25

    Re: Auto sort list into table

    Ignore the above, I have added a couple of If statements and made it work.

    Thanks for the help

+ 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. League Table - Auto Sort
    By batchy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2014, 10:38 AM
  2. [SOLVED] Auto Sort Table
    By batchy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-04-2014, 09:41 AM
  3. Auto Sort Table by Dates
    By Zins517 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2014, 04:21 PM
  4. [SOLVED] Auto sort excel table in VB
    By tryckman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-09-2012, 04:35 PM
  5. Auto Sort League Table
    By musstang in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-09-2012, 10:23 AM
  6. Replies: 1
    Last Post: 07-19-2011, 02:53 PM
  7. #REF! on Auto sort table
    By ojstimpy in forum Excel General
    Replies: 3
    Last Post: 03-15-2011, 07:32 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