+ Reply to Thread
Results 1 to 2 of 2

Auto sort columns when a change is made

  1. #1
    Registered User
    Join Date
    02-17-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    16

    Auto sort columns when a change is made

    So I have a sheet in a workbook that has two columns, A and B.

    A - List of supplier names that are got from another sheet (ie A2.. =Sheet1!E4, for example..)
    B - The corresponding "score" that this supplier got, also got from that same other sheet
    (with A1 and B1 being headers, so the supplier/score start from row 2)


    What I need is a way of sorting these columns so that the supplier and their score remain next to each other, but they are sorted in relation to their score, i.e highest scoring supplier at the top and lowest at the bottom. And when a score is changed, this sheet updates automatically to reflect this

    Please Login or Register  to view this content.
    I have this so far from a similar document I was using it in, but it doesn't seem to work in this one

    Thank you for any help!

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Auto sort columns when a change is made

    If both columns contain formulas then they won't trigger a Change-event. You will have to put a check on the Source sheet and work from there.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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. Replies: 9
    Last Post: 09-22-2015, 12:51 AM
  2. VBA in change event format to auto remove rows having zero value and auto sort
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-06-2013, 09:18 AM
  3. Auto Date when a change is made within a range of cells
    By arangel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2013, 05:23 PM
  4. Replies: 2
    Last Post: 11-16-2012, 01:44 PM
  5. [SOLVED] Auto Rank and Sort Variables Number/Change
    By bertique in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-06-2012, 04:17 AM
  6. Auto Sort Columns
    By mgs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2011, 02:19 AM
  7. Replies: 2
    Last Post: 02-14-2006, 02:10 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