Hi dinesh_ltjd,
It looks like you're combining both early and late binding, which isn't working. The most common method i've seen used for this is late binding, which I've modified your code to use:
Edit: I thought I'd also show you early binding, as it is easier to develop code using early binding as it exposes the object library, which allows the use of "intellisense" and syntax checking. However, it is recommended that you change it to late binding when releasing your code, especially if you're unsure of the software versions being used on other users' PCs.
Enjoy! 
Bradbb
Bookmarks