Moving /copying melody with accidentals

Can anybody tell me how to do this.

I have a melody in the strings and it has accidentals. I want to move it up a 5th but still keep the accidentals in place.

Thank you

If you have explicitly set the accidental visibility for the notes using the Properties panel, those properties will be preserved when you transpose if you switch on the ‘Keep accidental visibility properites’ option in the Write > Transpose dialog.

Thank You Daniel