

XWb.Worksheets(1).Copy after:=xToBook.Sheets(xToBook.Sheets. Set xWb = Workbooks.Open(xStrPath & xFiles.Item(I)) MsgBox "No files found", vbInformation, "Kutools for Excel"

If Right(xStrPath, 1) "\" Then xStrPath = xStrPath & "\" Set xFileDialog = Application.FileDialog(msoFileDialogFolderPicker)

Follow the steps in the Text Import Wizard, where. In the Choose a File dialog box, locate and click the CSV, HTML, or text file that you want to use as an external data range, and then click Get Data. How to import multiple text files from a folder into one worksheet? Sub Test() In the Import dialog box, click the option for the type of file that you want to import, and then click Import. Post back if you have additional questions. A PDF file is essentially a text file, on steroids. Also, if you want to consider converting all PDF files in a folder to text files, you can easily import text all text files into a folder into Excel, and then manipulate any way you want. There are tools online that do this for you. If the PDF Form has a table form, then you have to prepare data to be exported from a defined table.
