How can I replace my current header with a new one using code

I have applied the access. Please accept.