My folder name is 77. It has (12) R*.dat files and one excel file
Im imported 12 R*.dat files in 12 workbooks with 3 cols with this command string path$ = system.path.program$ + "samples\\script\77"; findfiles ext:=R*.dat; impASC;
and then imported excel file impExcel fname:="C:\77\a.xlsx";
Is it possible to import 12 R*.dat files to one workbook wich has named folder name (77) in 12 worksheets with first two cols and their names and than import excel file in 13 worksheet with his name.
The first one will import only 2 columns to multiple worksheets in workbook called "B77". Notice that we cannot use pure numeric to be book name. The second one will import a excel file to the 13th sheet.
Since I don't have your files, so these two command might not be exactly what you need.