The data sits in worksheets. To get it into the database I need to open a database in VBA and import the data from the worksheets to the database using macros.
As I said the data is not just records in the worksheet. For instance: Share prices worksheet has the shares listed in rows of the worksheet while the prices is listed in the columns. Each column has a date at the top and these columns run from 1/1/2014 up to today. That's over 1800 columns.
Other worksheets e.g. accounts has few columns for each account and the data is in the rows down. But then there is multiple accounts spread over the columns on the same worksheet where some has few records and others has lots of records.
Once I can open the database and read/write to it I think I will be able to do some macros that can read the data from the worksheets and write it to the database tables in the format needed in the tables.
But before I can try this I need to get the database opened from within VBA.
Some of the examples I found is VB. Will the VB code work in VBA? Keeping in mind it has to work in Excel 2010 64bit and most probably Office 365 (64Bit?) in the near future.
I will have to experiment how to accomplish this but in order to try I need the database opened first. And that's where I'm stuck. The examples I did find all start something like this:
How does this piece of code know where and what the database is?
Bookmarks