Is it possible to do so, right after opening the file? I can only attach this code to a button...