Saving an Array from Excel and writing into an Access Table

Jaryd

Board Regular
Joined
Apr 17, 2013
Messages
123
Hello,

So I wanted to work on this tonight and learn, but forgot to bring my code. Anyways, I would love some help or pointed to good resources.

I have an access macro that opens excel and runs a macro to make an array. I am having trouble getting that array to stay when going back into access. I also don't know how to add the data from the array into an already existing table.

I tried declaring the array as Public in access. It works in excel, but disappears when coming back to access.

All my table and array lengths match up for the writing to table.

Any help or advice would be great. Thanks.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Upvote 0
Are you able to place and save the array into a worksheet, or is this just in machine memory? If you have saved it, the TransferSpreadsheet function could transfer the data from Excel to Access.
 
Upvote 0

Forum statistics

Threads
1,221,780
Messages
6,161,887
Members
451,730
Latest member
BudgetGirl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top