Hello,
I have been struggling to figure out how to find out if in cells in excel is file name from folder (without PDF) and if so then write into same row “Approved”.
I would recommend you to update the datatable first and at the end just write that data table in excel sheet. Using Write cell for each file will slow down the execution.
strPDF_Folder = "C:\Input\PDF Files"
for each row in dtInput.rows
If system.io.file.exists(path.combine(strPDF_Folder,fl("File Name").ToString & "*") then
row("Status") = "Approved"
end if
next row
Write range > dtInput
Hello, thank you for suggestions but it is not what I meant.
I have an excel
COLUMN J contains names of files (without .pdf), COLUMN R say OPEN
And what I need is when row in COLUMN J = file name (this file with same name was found in folder) then the same row COLUMN R should be overwritten with APPROVED.