Hello all,
I'm new to coding vba. The goal of my macro would be to loop through all files in a folder running a macro that rearranges the files' format and copies the desired range. Then copy this range of data to a master sheet matching the data range to the correct header which is a date.
So far I have code on the personal workbook that formats the individual files and copies the data range I want. I know there is code that can loop this macro through a folder running it on each file; I just have not integrated this code with mine yet. But, I do not know how I will be to match the copied data from the individual files to the column headers they need to be pasted under. It'd be much appreciated if anyone could help with this.
The macro on the personal workbook reformats this original txt file.
Original txt-min.png
The macro turns the original text file into the format below.
after mac.png
So the overall vba code should be activated by the Weld Scrap Dollars button, call my macro (which is called WeldScrap()), and paste scrap dollar values to master sheet according to code and date.
transfer2.png
If anyone could help with this I'd really appreciate it!
The vba code on the personal workbook I put in a word file attached to look at sorry for the inconvenience.
Several input files and a skeleton of the master sheet are attached. I would attach the full master sheet if it wasn't due to file size constraints.
Bookmarks