Sort Each Row seperately

  • Thread starter Thread starter Steph
  • Start date Start date
S

Steph

Hello. I have a block of data (A5:Z2000). Each row represents data for a
specific individual. I know how code vba to sort a single row. How can I
have vba sort each row individually?

So in other words, I need to sort A5:Z5 in ascending order.
Then sort A6:Z6 in ascending order
And so on...So a looping sort?

Thanks in advance!
 
Steph said:
Hello. I have a block of data (A5:Z2000). Each row represents data for a
specific individual. I know how code vba to sort a single row. How can I
have vba sort each row individually?

So in other words, I need to sort A5:Z5 in ascending order.
Then sort A6:Z6 in ascending order
And so on...So a looping sort?

Thanks in advance!

For example:

Sub SortRowsMakro()
totalrows = ActiveSheet.UsedRange.Rows.Count
For Row = 1 To totalrows Step 1
'
'Hear your sort steps for one row
'


Next Row
End Sub

Reg. VK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top