Write to Excel from Access

aw23

New Member
Joined
Jan 18, 2005
Messages
3
I have a function in my program where the user can import a spreadsheet from Excel to Access. On the form there are several txtboxes where the user selects the path, name, range, etc. This works great. Now I'd like to add a field where the user enters data that needs to go into the db along with the spreadsheet, in the same records. So that I can either add the data to Excel and then import or import and then update in access. I'm kinda stuck on this. I think the best way would be to add it to the Excel file. I have opened the file from access but do not know how to write to it. I have programmed in Excel VBA and I know how to write to an Excel file through code, I just don't know how to do it from Access.

Any suggestions?
Thanks
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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