I have a visual basic macro (shown below) in a master sheet that imports all of the csv files in the root folder of the master tally file. This works great if the beginning of the files have explicitly different names. But many times the csv files I get are named such that the sheet tab name that is set to the csv file name truncates making the macro fail because the second file it imports has the same truncated name (gives me a name error). I am trying to get the correct syntax to get the names of the tabs changed to the count value (Fnum) “-“ then the truncated csv file name. Any help from a savvy visual basic guru would be greatly appreciated.
![]()
Please Login or Register to view this content.
Bookmarks