It is not clearly written but whenever you opena file with. So is it possible to create a batch file and run the macro? But how do I exactly create a batch file? I didnot understand the code u have provided like where should I run them? and my file is in.