Reorder a list after data input

macca_efc

New Member
Joined
Apr 4, 2021
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am after some help, I want to reorder a list every time a new data entry has been made. I have explained what I am after with this video and attached the spreadsheet.


Many thanks in advance.

Andy
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Welcome to MrExcel Message Board.
You can use VBA. If your table is in Column A to C and start from A1.
And you want sort it based column C then
1. At excel window on sheet name Right-Click & Select View Code.
2. At window appeared Paste this code:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim i As Long, Lr As Long
If Target.Column = 3 Then
Lr = Range("C" & Rows.Count).End(xlUp).Row
Range("A1:C" & Lr).Sort key1:=Range("C2"), order1:=xlAscending, Header:=xlYes
End If
End Sub
3. Close VBA Window and then Save as your file as Macro-Enabled Workbook (.xlsm)
4. Now your file ready. each time you enter Data at column C your table sorted based on.
 
Upvote 0

Forum statistics

Threads
1,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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