My guess is this code came from recording a macro
i think you are probably correct