Hi @Spinner I hope you are doing well.
This is an interesting new use case, the Word Actions are new, so they (MS) will need improvement down the road.
However, you can use the Write to Word Document Action
This action allows you to write before or after a Bookmark on Word.
So, here are the steps you need to follow:
- Open Excel and double click in the header of your Word Template file and then click Insert.
- Now, click the option Bookmark (in the header you don’t need to select nothing)
- Use the Bookmark Name Header.
- Press the bottom Add.
Here is the snipped code:
Word.WriteToWord.WriteStartOfBookmark Instance: WordInstance Text: $'''This is a new test''' AppendNewLine: False Bookmark: $'''Header'''
Please let me know if it works, happy automation!,
If I have addressed your inquiry successfully, kindly consider marking my response as the preferred solution. If you found my assistance helpful, a 'Thumbs Up' would be greatly appreciated.
Additionally, I offer specialized consultancy and development services leveraging PAD. If you're interested in exploring these services further, feel free to DM me, and we can initiate a discussion.
Kind regards,
Will SG
Managing Director & Automation Lead
RAMS CR (Recruitment & Automation)
LinkedIn Profile
