If you cange the line
Filename:="C:\Test\" & stTextName & "_block_" & j, _
FileFormat:=xlText
to
Filename:="C:\Test\" & stTextName & j, FileFormat:=xlText
The files will be named "Mainblade1.txt", "Mainblade2.txt", "Mainblade3.txt" and so forth.
I would recomend you read the word document I added in the previous post this explains a bit in more detail what and how thia macro does things.
If you want to name them from 10 to 37 you just add
before the "Do Until" statment and the naming format must be as before
i.e.
Filename:="C:\Test\" & stTextName & j, FileFormat:=xlText
Alf
Bookmarks