Hi Arvin, Thanks for the reply. However I'm sorry but I can't see how this
helps? I can see that one routine allows me to use the File Open/Save dialog
box but the other routine doesn't seem to allow me to specify that specific
database fields in the client record get populated with data from the named
spreadsheet. I need to transfer the contents of 5-8 cells in a specific
individually named excel spreadsheet into the client record - this seems a
very basic import that I would have thought a supposedly integrated suite of
software would have!
I'm not a coder so I'd have difficulty modifying the examples given - is
there no ready written code or 3rd party app I could use?
Cheers
Mike
Hi Mike:
See this part of the Excel automation code:
With objActiveWkb
.Worksheets(1).Cells(1, 1) = "Hello World"
strWhat = .Worksheets(1).Cells(1, 1).value
End With
strWhat is a variable in an Access code module. The code above writes "Hello
World" to cell A1, then reads it into strWhat. No suppose that strWhat is a
field in an Access table and we write to a recordset based on that field, or
even a textbox on a form bound to that table and we write to that textbox
(txtWhat instead of strWhat) on that form. The code demonstrats taking the
data from any specific Excel cell and writing it to Access.

Signature
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
> Hi Arvin, Thanks for the reply. However I'm sorry but I can't see how this
> helps? I can see that one routine allows me to use the File Open/Save
[quoted text clipped - 36 lines]
>>>
>>> Mike
Mike Langensiepen - 30 Oct 2006 04:52 GMT
Hi Arvin,
Thanks for the explanation. Does the spreadsheet in question have to be open
or will it read it from the disk? What I was hoping is that I wouldn't have
to have the spreadsheet open as this interferes with the workflow (we
usually have 3 or 4 spreadsheets open at the same time as using the
database.
Is there a detailed description of the variables used or do I have to muddle
along?
> Hi Mike:
>
[quoted text clipped - 53 lines]
>>>>
>>>> Mike
Arvin Meyer [MVP] - 31 Oct 2006 04:47 GMT
As far as I know, it has to be open, but it doesn't have to be visible. I
don't believe the code I pointed you to makes it visible, but I'm not sure
since I usually use early binding myself. The variables are Dim'd in the
early part of the code.

Signature
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
> Hi Arvin,
>
[quoted text clipped - 64 lines]
>>>>>
>>>>> Mike