+ Reply to Thread
Results 1 to 4 of 4

VBA to automatically sort data by column

  1. #1
    Registered User
    Join Date
    10-27-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    88

    VBA to automatically sort data by column

    Hi

    I am hoping to sort the table in descending order by the figures in column B and for this to happen automatically whenever the data is updated.

    Sorry if this has been asked before I did a search and could not find anything.

    Would this be possible? Thanks in advance.

    service report 3.xlsm
    Last edited by ormerods; 08-02-2013 at 10:15 AM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,836

    Re: VBA to automatically sort data by column

    Place this macro in the worksheet code module. Right click the tab name, click 'View Code', paste the code into the empty module that opens up, close the module. Enter a number in column B.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-27-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: VBA to automatically sort data by column

    working perfectly thank you

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,836

    Re: VBA to automatically sort data by column

    My pleasure.

+ 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. Can I sort a column automatically everytime I close a file
    By jimmy05 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2012, 11:09 AM
  2. sort data automatically
    By verisme in forum Excel General
    Replies: 5
    Last Post: 12-27-2009, 04:53 AM
  3. Automatically sort column numerically?
    By Keebs in forum Excel General
    Replies: 8
    Last Post: 07-23-2008, 11:56 AM
  4. how do I automatically sort a column on entry
    By Michael in forum Excel General
    Replies: 5
    Last Post: 06-19-2006, 09:55 AM
  5. Sort a column automatically
    By Longtime in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-30-2006, 05:10 AM

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