Sort records after entering new data at the end of the list

adelkam

Board Regular
Joined
Feb 14, 2012
Messages
65
My data records starts from Column "B" to column "AD". The table headers at cells "B6" to "AD6", the actual data starts at row 7. I add new records to the table constantly. After I add all the new records at the end of the table, I need to get all data records sorted in ascending order based on Column "B". I think of vba code that fires at "Worksheet_Deactivate" event .. I appreciate your help .. thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
I dont know if I understood your requirement completly but all you should do is to sort the table based on column B. Record a macro and then replace your last row with a variable.
 
Upvote 0

Forum statistics

Threads
1,196,127
Messages
6,013,611
Members
441,777
Latest member
Lleuadwen

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