Hi! I have a macro that I have put together and used for some time that is a huge help to me. I wanted to see if I could modify it to add an additional function.
As it stands, I run the macro and point it to a folder containing many text files. The macro does some modification to a text file, saves it, and loops through until all files in the folder have the new info in them.
I need for these text files to have a unique serial number in them as well.
My idea was to paste into the excel starting in cell A1 the list of serial numbers. The list would go down to A100.
I'm thinking to have the macro CUT cell A1 and paste the contents into H11 and from there that will be added to text file #1
Now that cell A1 is blank, for text file #2, the macro should see the cell is blank and go down to cell A2 for the serial.
This should go on until all of the text files are modified.
I will never run this on more than 70 files at a time probably, so I say cell A100.
Does this sound like a feasible way of handling this? If so, would someone suggest some code?
Thank you in advance.
As it stands, I run the macro and point it to a folder containing many text files. The macro does some modification to a text file, saves it, and loops through until all files in the folder have the new info in them.
I need for these text files to have a unique serial number in them as well.
My idea was to paste into the excel starting in cell A1 the list of serial numbers. The list would go down to A100.
I'm thinking to have the macro CUT cell A1 and paste the contents into H11 and from there that will be added to text file #1
Now that cell A1 is blank, for text file #2, the macro should see the cell is blank and go down to cell A2 for the serial.
This should go on until all of the text files are modified.
I will never run this on more than 70 files at a time probably, so I say cell A100.
Does this sound like a feasible way of handling this? If so, would someone suggest some code?
Thank you in advance.