How can i store some text inside a variable?

Hi @wsm1 ,
there is no need of using hotkeys, get clipboard activity and all for this process. We usually do not use this way.

Instead you can use read text activity for notepad and append text activity for word.

I am also attaching a sample workflow with sample files please do have a look. I hope it might help you.
CopyTxtFileToExcel.zip (10.3 KB)

Thanks & Regards,
Shubham Dutta