Neetha,
Look for Macro or an SP and you should be able to pass parameters to them.
Attachments
Library
Quick Reference
Archives
Sample Index
2008 Indexes