Hey guys, first time posting here, absolutely no experience programming macros, but I did do some vba in high school about 5 years ago, so extremely rusty, let me explain my question.
I have a text file for every month of the year for 4 years and I would like to import them to a single workbook but different sheets. I actually already found a solution to this, a section of code I found (from this forum I think?) I don't remember where I found it, so if the OP of this code could come forward and claim this, much appreciated.
Also, I did hit the sticky but could not find the solution to my first problem, delimiters.
I edited this code so it would ask for the path of the txt files as well as changed it from csv files to txt files.
Problem is, the text files have semicolon delimiters and I know that you set delimiter options in the "Workbooks.Open" command but I don't know the syntax.Please Login or Register to view this content.
Also, I need 2 other things, first is a must have, but the second is not needed, it would just be nice.
1) I need to add an extra column to each worksheet that adds certain cells together, eg B2 + C2 + E2, and implement this in the same code as the above.
2) Copy these extra columns from each worksheet into a different workbook, specifying the start and end point for each set of 12 worksheets (Eg 2008 Jan - Dec in the 2008 worksheet, then 2009 Jan - Dec in the 2009 worksheet etc etc)
Thanks a lot!! (Oh does Tapatalk work for this forum by the way?)
Bookmarks