Are you getting Subscript out of range error?
Then either the argument 'Object ' is not correctly passed when you call
the Sub.
IF you are sure you pass it correct
in your code before Sheets(Object) try Object = Trim(Object) .
And finally don't use Sub name 'Sort' and Variable name Object.
Use something else which does not conficits with excel in-built
commands, constants, properties etc.
Sub mySorting(myObject as String
would be better :-)
Sharad
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!