Need excel help asap

alexavila_22

New Member
Joined
Aug 4, 2016
Messages
2
i am having the hardest time figuring this out....

i am trying to create a code or something that will allow me to sort my excel sheet by column A. i have headers from columns A to N.
i would like for it to sort after i fill in in column n but sometimes i wont have information to put in from column I to N until much later.

i hope someone can understand this.
PLEASE HELP ME

thanks
 
Try this:

Code:
 Range("A1:N" & Sheets(1).UsedRange.Rows.Count).Sort _ 
key1:=Range("A1"), order1:=xlAscending, Header:=xlYes, MatchCase:=False, Orientation:=xlTopToBottom
 
Upvote 0

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