Auto sort multiple columns using VBA when a value is changed.

Tamara551

New Member
Joined
Mar 2, 2025
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Okay, this is my first time coding. I need to sort by multiple columns when a value is changed. I figured out how to auto sort by one but not by multiple. I have just been researching other coding suggestions and trying to make them by own with no luck. I need to sort the columns when column E value is changed. I want to sort by column A, then E, then B. Please help. I can get it to work by F5 with some of the codes I used but I cannot get it to auto sort.
 

Attachments

  • Officer Rotation Sort Question 1.png
    Officer Rotation Sort Question 1.png
    52.4 KB · Views: 10
  • Officer Rotation Sort Question 2.png
    Officer Rotation Sort Question 2.png
    23.5 KB · Views: 10

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top