Hello folks! Long time lurker but finally decided to ask some questions here since I see you guys have an awesome community...!
I have a somewhat interesting project where I am taking badly formatted data from an export to .XLS, converting it to .CSV format (to strip the crazy groupings and other issues), manipulating the formatting again for column headers and other settings, then saving it again in .XLSX format. I only really need the final output of the .XLSX file, and I want to save it to a specific folder but have the name based on the existing sheet name or file name...!
Currently it basically works (by running the macro from a .XLSM file), but only deletes the generated .CSV file and leaves the original garbage .XLS file there. The files are also saved in the Documents folder (default) and I cannot figure out how to save all the files into a subfolder. I have tried using the following for the path: "%homepath%\documents\ExcelReports" but I could never get this to function with generated file names. Maybe my syntax is just wrong, or I am going about this the wrong way... If anyone can help or make comments it would be much appreciated!
I have cut and spliced and tested to the best of my ability and ended up with this:
Bookmarks