Using a MACRO to sort data

B

BAM718

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.
 
D

Don Guillett

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
 
M

Mexage

well, if you didn't, it does appear that way in your original post... check
it out

:-D
 
D

Don Guillett

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