Thanks a lot for your reply Diane Poremsky.
It seems there was no issue with the code, once I restarted my system, code is working as expected and it is not opening VBA editor. :)
Monday, I will share it with my colleagues. Will try the process you mentioned.
Once again, thanks for your help.