[vba]

Sub sortall()
sort "G"
End Sub

Sub sort( ByVal mysort As String)
Dim e
e= Range ("Sheet1!" & mysort & "5").Value
'do some other stuff

End Sub
[/vba]