Using a MACRO to sort data

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to use a Macro in an Excel Workbook that would allow me to
sort multiple sets of data on multiple sheets at one time?

P.S. I have never created a Macro before.
 
something like this?

Sub sortall()
For Each sh In Worksheets
With sh
..Range("B3:B4").Sort Key1:=.Range("B3"), Order1:=xlAscending
End With
Next sh
End Sub
 
well, if you didn't, it does appear that way in your original post... check
it out

:-D
 
Before I answered, I did but it wasn't in my macro or it wouldn't have
worked..............................
 

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