Hi @Anonymous
Total number of characters that a cell can contain are 32,767 characters
Excel specifications and limits (microsoft.com)
So its doesn't look like that is the issue.
When you mention "..I don't get all the file paths inserted into Excel. "..
What do you actually get?
Can you check the length of how many characters are present in that cell after writing.
You can use the below formula manually, where A1 is your cell after writing from PAD.
=LEN(A1)
Check with different folder paths and see if it is always trimming after a certain number of characters.
One thing I noticed is when I wrote the %Files% variable directly as below...

Then it wrote the list of files on separate cells starting from A1, A2 and so on.

But when I set the list of files first in Clipboard and then wrote the Clipboard to the Excel...

Then it wrote all of the list within one single cell....I think this is what you want.
All of them were written within only A1.

In my case when I checked the length of this cell, it did not exceed 32,767 characters.