How to extract the pdf name and store into excel

how to extract the pdf name and store into excel
if i hv 5 pdf and have those pdf i hv converted into excel respectively.
i want to extract pdf file name and store into excel file
i hv done the pdf file name and sing for each loop name get saved into excel but in all excel one pdf file name is saved. how to store seprate pdf file name in separte excel respectively

@dhanu_lokhande

Can you show how you are trying to save the names …

Ideally in the loop we have to make sure to change the pdf filename variable as well to save different file names

Cheers