bluepenink
Well-known Member
- Joined
- Dec 21, 2010
- Messages
- 585
Hello
below is my code, just having some difficulty with defining the sheet name portion...at least taht is whre the error is occuring:
row 6 has the headers....so the header range is C6:N6
much appreciated!
below is my code, just having some difficulty with defining the sheet name portion...at least taht is whre the error is occuring:
Code:
Sub EmployeeName()
ActiveSheet.Index = Sheet1.Index
Range("C6").CurrentRegion.Sort Key1:=Range("D7"), Order1:=xlAscending, _
Header:=xlYes, OrderCustom:=1, MatchCase:=False, _
Orientation:=xlTopToBottom, DataOption1:=xlSortNormal
Range("F5") = "Sorted by: Employee Name"
End Sub
row 6 has the headers....so the header range is C6:N6
much appreciated!