Hello everyone!
I am new to the forum and a begginer in VB Access.
Is it possible to create a macro in Access to open a folderpicker dialog box, import all the .txt files to an Excel file to perform calculations and next to import the data to the Access database?
So far I have acomplished the importation from txt files to excel and from excel to access but I have designed two separated macros to perform this task (one in Excel and the other in Access) and for a single file at a time.
The problem to this structure is that i need to import several text files and i would also need to create the same number of Excel files for the last importation to Access.
So I was wondering if I could create a single macro in Access to select a folder (containing multiple text files), instead of a single text file and in a while loop (maybe) import to excel, perform calculations and then import to Access each file of the selected folder and not create several excel files, since i just need one to perform the calculations.
Sorry for the long post. Thanks in advance
Best regards,
Jonrok
I am new to the forum and a begginer in VB Access.
Is it possible to create a macro in Access to open a folderpicker dialog box, import all the .txt files to an Excel file to perform calculations and next to import the data to the Access database?
So far I have acomplished the importation from txt files to excel and from excel to access but I have designed two separated macros to perform this task (one in Excel and the other in Access) and for a single file at a time.
The problem to this structure is that i need to import several text files and i would also need to create the same number of Excel files for the last importation to Access.
So I was wondering if I could create a single macro in Access to select a folder (containing multiple text files), instead of a single text file and in a while loop (maybe) import to excel, perform calculations and then import to Access each file of the selected folder and not create several excel files, since i just need one to perform the calculations.
Sorry for the long post. Thanks in advance

Best regards,
Jonrok