Hi everyone,
I am starting to work with VBA, my programming skills are limited so I am able to understand code, but it is difficult to create one from scratch.
Scenario:
I have an excel, with several worksheets (about 11), with information in the first colum.
Macro1:
I would like to export the first colum (omitting the first row) to a txt file with the same format, I will need as many macros as worksheets I have.
1- The txt file should be created in the same folder where the excel file is.
2- The filename should be first 13 charactes of the excel filename + the worksheet/tab name + v0.1
3- If possible every time you run the macro v0.1 at the end of the filename should be incremented (this step is not completelly neccesary but I would like to see how it is done to learn)
Macro2:
I would like to have a separate macro to do the same for all the worksheets starting in the 5th one (the first four are not required). It is to generate the txt for all the worksheets at the same time.
I have managed to export the worksheet to a txt file, but I am lost regarding the filename and the macro 2.
Any help is welcome, thank you.
Bookmarks