How do I replace text in a header within a .docx document?

Hello,

I have followed this solution: Word - Replace text at Header level? - #2 by cmolina

But I’ve gotten these errors:

"Get Full Text ‘edit Header -Section 1-’: Could not find the UI element corresponding to this selector:
[1] wnd app=‘winword.exe’ cls=‘OpusApp’ title=‘Appointment letter - Default - Word’/
[2] uia name=‘Header -Section 1-’ role=‘edit’/

Search failed at selector tag:
[1] wnd app=‘winword.exe’ cls=‘OpusApp’ title=‘Appointment letter - Default - Word’/>

The closest matches found are:
[95%] wnd app=‘winword.exe’ cls=‘OpusApp’ title=‘Appointment letter - Default - Word’/>"

Is there any solution for this?

Hi @clownfish

Can you try with Replace Text in Document activity

Regards,

The above doesn’t work as the one OP is trying to change is in the headers. Please help because I’m also trying to find a way to change headers.

Hi @clownfish
Did you already review related topics in the forum?