Jorgen
asked on
Can I link (connect) a table to a dynamic CSV file based on cell values for folder and filename using VBA?
Every month I send a CSV file to different users, that they should analyse in Excel.
I have attached a spreadsheet that has the VBA, that I have been using to import into Excel for them, and this is followed by a pivottable that gives the users the possibility to analyse data.
Unfortunately this does not import data to an Excel Table, which will give me a more flexible way of expanding/change the size of my dataset.
I have created the import and analysis using PowerQuery and it Works great. Unfortunately does many of my users not have access to PowerQuery, and I need to do the same in Basic Excel and use some VBA to do the same trick.
The procedure is called OpenCsv and it imports the data to the the sheet "Vederlagsspecifikation" based on the two inputs of folder and filename in the sheet "Vejledning"
If you have any questions or need to me to clarify my problem, please just ask.
best regards
Jørgen
100575-VL000274.csv
Test-af-import-af-csv-fil.xlsb
I have attached a spreadsheet that has the VBA, that I have been using to import into Excel for them, and this is followed by a pivottable that gives the users the possibility to analyse data.
Unfortunately this does not import data to an Excel Table, which will give me a more flexible way of expanding/change the size of my dataset.
I have created the import and analysis using PowerQuery and it Works great. Unfortunately does many of my users not have access to PowerQuery, and I need to do the same in Basic Excel and use some VBA to do the same trick.
The procedure is called OpenCsv and it imports the data to the the sheet "Vederlagsspecifikation" based on the two inputs of folder and filename in the sheet "Vejledning"
If you have any questions or need to me to clarify my problem, please just ask.
best regards
Jørgen
100575-VL000274.csv
Test-af-import-af-csv-fil.xlsb
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I have recommended this question be closed as follows:
Accept: Rgonzo1971 (https:#a41799546)
If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.
frankhelk
Experts-Exchange Cleanup Volunteer