V
VoxBox-Richard
I have written some code to sort some data every time its sheet is open. My
code is working fine in 2007, but I am getting errors in 2000.
Can some one look through and give me some pointers.
Thank you.
R.
Code:
Private Sub Worksheet_Activate()
Range("B13").CurrentRegion.sort Key1:=Range("B13"), _
Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=True, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
End Sub
code is working fine in 2007, but I am getting errors in 2000.
Can some one look through and give me some pointers.
Thank you.
R.
Code:
Private Sub Worksheet_Activate()
Range("B13").CurrentRegion.sort Key1:=Range("B13"), _
Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=True, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
End Sub