Thanks once again for providing us the proper solution,

Can you please explain me the complete steps to hide this sheets, I am unable to understand where should we use this code. Is it a VB code?

Sorry for confusing you but I am unable to get proper solution that's the reason I am asking you this question?