Z
Zurn
With the code below I get a range of cells from different files and pu
it in a new file named globalbook
FName = Application.GetOpenFilename(filefilter:="Excel Files (*.xls)
*.xls", _
MultiSelect:=True)
...
For... ...
...
globalbook.Worksheets("X").Cells(r, 1).Value = insertbook.Name
r+1
...
The last line writes the name of each file on sheet X
My problem is that I don't need the *.xls * to be written on shee
X...*how can I easily trim the .xls from the filename?
it in a new file named globalbook
FName = Application.GetOpenFilename(filefilter:="Excel Files (*.xls)
*.xls", _
MultiSelect:=True)
...
For... ...
...
globalbook.Worksheets("X").Cells(r, 1).Value = insertbook.Name
r+1
...
The last line writes the name of each file on sheet X
My problem is that I don't need the *.xls * to be written on shee
X...*how can I easily trim the .xls from the filename?