Hello,
I have this VBA code that I partially recorded. Firstly it asks files to be imported and then puts each file into separate sheet.
But how to get the currently connected file's name?
I would like that each sheet has the file's name as title.
For example if I import files: test1.csv, test2.csv, test3.csv
Then I would like to have sheet names: test1, test2, test3
To change sheet name, there is code:
ActiveSheet.Name = "New Name"
Here is my VBA code:![]()
Please Login or Register to view this content.
Bookmarks