how can i alter this formula so that it shows the Top number of players that the user types into the input box
Thankz in advance
Sub Filter_Ltable()
'
' Filter_Ltable Macro
' Macro recorded 10/05/2002 by
'
'
Dim x As Integer
x = Application.InputBox("How many of the top players do you want to show" _
, "Enter number of players", 10, , , 1)
Range("B4:H4").Select
Selection.AutoFilter
Selection.AutoFilter Field:=7, Criteria1:="10", Operator:=xlTop10Items
Range("B5").Select
End Sub
Thankz in advance
Sub Filter_Ltable()
'
' Filter_Ltable Macro
' Macro recorded 10/05/2002 by
'
'
Dim x As Integer
x = Application.InputBox("How many of the top players do you want to show" _
, "Enter number of players", 10, , , 1)
Range("B4:H4").Select
Selection.AutoFilter
Selection.AutoFilter Field:=7, Criteria1:="10", Operator:=xlTop10Items
Range("B5").Select
End Sub