Quote Originally Posted by anil.kut View Post
Can you modify it. I don't know vba just copy pasted from someehere.
This is nothing to do with Excel or VBA

This is all about how you present information in the forum. We require code to be surrounded by code tags since it makes reading it much easier. We don't care where you copied it from. We do care that you take the trouble to select the code in the forum post and click the # icon to create the tags.