Assigning data to specific cells in excel from access

King

New Member
Joined
Jul 13, 2004
Messages
36
Hi guys
I have an access database with several forms. One from prompts the user for landholder details and has command buttons to open another form with property assessment details. once the second form is complete I have a command button which opens excel and assigns the property ID number as the sheet name. What I want to be able to do is put the landholder details into specific cells in the sheet automatically (similar to the way the sheet is named) Is it possible to do this from access.

Cheers
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
a command button which opens excel and assigns the property ID number as the sheet name
What code is doing this?

Can you post it?
 
Upvote 0
There's a couple different ways to approach this:
One, if the cell locations never change might be to code the locations into an Access function (that you write) to save specific data to specific locations.

A second, if it's always the same way, (lets say you want to save the data exactly as it appears in a table (or re-ordered as it appears in a query) - you can export the entire query to a given table.

A third is similar to the first. You can export specific data to a named range on the xls. This allows you to rename groups of cells without the Access MDB needing to know anything about it.

This isn't going to answer your question, but here are some technique examples.

http://www.mvps.org/access/modules/mdl0035.htm

Mike
 
Upvote 0

Forum statistics

Threads
1,221,825
Messages
6,162,190
Members
451,752
Latest member
majbizzaki

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