Is there an option to save a code in another file (say .nb by just copy pasting) and then when opening a new blank .nb call the saved one in such a way that it executes everything on it and outputs results in the newly opened file without showing the original code, just like if we had it and Shift+Entered?
I know one can in principal develop a package .m but if simple import execution is possible it will save a lot of time. Thanks.