Hello All,
I am very new to VBA and macros and am trying to build a macro that will allow me to push the values from specific cells in an Excel worksheet to a table in Access. I know there are tons of posts across the internet about sending ranges or entire sheets to Access, but I can't wrap my head around sending data from a few specific cells.
For example, I have a table, called 'Table', in 'Path\Database.accdb'. Table has four columns, the first of which will be filled manually. The other three columns are called 'Name', 'Phone Number', and 'Address'. The corresponding values for these columns are spread across an Excel worksheet, let's say in cells A1, B3, and C6, respectively.
I'd like to have a macro on the Excel sheet that will push the values in these three cells to the appropriate columns in Table. I have made little to no progess aside from reading up some on ADO and playing around with code I've found in my searches. Ideally I'd like to use the INSERT INTO sql statement somewhere but I am open to all suggestions.
Thanks in advance for any insight or direction towards the solution.
I am very new to VBA and macros and am trying to build a macro that will allow me to push the values from specific cells in an Excel worksheet to a table in Access. I know there are tons of posts across the internet about sending ranges or entire sheets to Access, but I can't wrap my head around sending data from a few specific cells.
For example, I have a table, called 'Table', in 'Path\Database.accdb'. Table has four columns, the first of which will be filled manually. The other three columns are called 'Name', 'Phone Number', and 'Address'. The corresponding values for these columns are spread across an Excel worksheet, let's say in cells A1, B3, and C6, respectively.
I'd like to have a macro on the Excel sheet that will push the values in these three cells to the appropriate columns in Table. I have made little to no progess aside from reading up some on ADO and playing around with code I've found in my searches. Ideally I'd like to use the INSERT INTO sql statement somewhere but I am open to all suggestions.
Thanks in advance for any insight or direction towards the solution.