+ Reply to Thread
Results 1 to 4 of 4

Help needed: Code for sorting table by date

  1. #1
    Registered User
    Join Date
    12-21-2017
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    2

    Help needed: Code for sorting table by date

    I'm in the process of updating my team's planning spreadsheet. There's macro code in there I'm trying to make universal, so I don't have to create a new macro for every team member. Could someone please advise on how to change this so that every instance of the individual's name ('John' in this example), now just refers to a cell (which will contain the individuals name)?

    Please Login or Register  to view this content.
    Last edited by ianwall; 12-21-2017 at 11:41 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    371

    Re: Help needed: Code for sorting table by date

    Try:

    Please Login or Register  to view this content.
    and call with

    Please Login or Register  to view this content.
    Design everything to be as simple as possible, but no simpler.

  3. #3
    Registered User
    Join Date
    12-21-2017
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    2

    Re: Help needed: Code for sorting table by date

    Thanks! I managed to adapt it to get what I needed

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    03-16-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    371

    Re: Help needed: Code for sorting table by date

    Don't use "NAME" as a variable, it is a reserved word. Try "strNAME" or something like that. Glad you got it working
    If that takes care of your original question, please select Thread Tools from the menu link above to mark this thread as SOLVED.
    To say thanks to the user(s) who contributed towards the solution, you can use the "Add Reputation" button on their helpful post(s).
    Thanks!

+ 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. Add-in needed: date sorting
    By Rollercoaster in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2017, 11:54 AM
  2. Sorting by date in pivot table
    By malexoran in forum Excel General
    Replies: 1
    Last Post: 05-31-2016, 06:56 AM
  3. Sorting a table with a macro - code not working
    By MikeRoot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-03-2014, 04:40 PM
  4. Sorting data in a table by date
    By teekayy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-19-2012, 06:26 AM
  5. Sorting Pivot Table by Pub Date
    By ilundy77 in forum Excel General
    Replies: 2
    Last Post: 06-03-2011, 12:51 PM
  6. Replies: 4
    Last Post: 03-01-2010, 06:12 PM
  7. Sorting table by date column
    By Taomongoose in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-26-2009, 08:48 AM

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