i have data in excel which i need to put into access. The data needs to be "massaged" before i upload it into access. I currently have a macro in excel to do it.
this macro opens the table in access through DAO. then it loops into the excel sheet row by row while taking bits and pieces of some strings in certain columns from each row. then i upload the "massaged" data in access row by row. I do it through a command button in excel to get the filename of access database and the excel.
Now instead of having to do it in excel. I want to do it in access. I did not manage to do it.
How do i loop through the excel row by row, modify it and then insert it into access VBA?
How do i upload it to one of the table in this access?
I dont want to use the import funtion as the columns order can be different for different user. So it has to read the column header and based on this header it has to add the data from this column in a specific column in access.
any help or link i can study to do that? I did not find anything on this forum.
this macro opens the table in access through DAO. then it loops into the excel sheet row by row while taking bits and pieces of some strings in certain columns from each row. then i upload the "massaged" data in access row by row. I do it through a command button in excel to get the filename of access database and the excel.
Now instead of having to do it in excel. I want to do it in access. I did not manage to do it.
How do i loop through the excel row by row, modify it and then insert it into access VBA?
How do i upload it to one of the table in this access?
I dont want to use the import funtion as the columns order can be different for different user. So it has to read the column header and based on this header it has to add the data from this column in a specific column in access.
any help or link i can study to do that? I did not find anything on this forum.
Last edited: