I am trying to find the shortest method for users to import their downloaded .csv bank statements into a personal finance workbook.
The column order depending on which bank is involved will differ (and there will be more than needed) so I thought about using a staging sheet to paste into so the user can name the required columns before pasting into the destination sheet.
I have 5 columns in the final destination sheet:
Date, Type, Description, Amount, Running Balance
I have created 10 dynamic named ranges in the staging sheet to accept the raw imported data. (these dynamic ranges are named IMPORTCOL1, IMPORTCOL2 etc..) I have also added data validation drop downs on the head of each import column containing a list of my 5 columns headers in the destination sheet.
What I am trying to do is have code determine which of the 5 needed destination columns the imported column data should be sent to. I know there must be code to loop through each of the 5 required imported columns with values entered in the drop down by the user but for now I would be more than happy to have them execute each column copy/paste routine by a form control button sitting above each import column.
I need to modify this basic code to have it look for the value in the drop down in for example column A (assumes column A is 1 of the 5 to be copied/pasted) and then decide which of the 5 columns in the destination sheet it needs to go to. I suspect this is a Select Case job but I'm unsure how to structure the Case statement? It's been a good while since I've tinkered with any VBA and sadly I've forgotten most of what little I knew. That said if I could get some initial help with this I hope some memory will return
Many thanks
Bookmarks