LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
MJ MJ is offline
external usenet poster
 
Posts: 2
Default How to load/insert/update an embedded word object to Access...

I am using Excel (XP,2000) as the front end to load data into Access
(2000)

The worksheet has an embedded Word object '=EMBED("Word.Document.8","")
in the worksheet.

The 'Data Type' for the field that is supposed to receive the object in
the Access table is 'OLE Object'.

Here is the code... which results in a
'Run Time Error 438.
'Object doesn't support this property or method.

--I have tried other variations with different erros.


Sub Send()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim ws As DAO.Workspace
Dim wObj As Object

Set ws = DAO.CreateWorkspace("", "admin", "", dbUseJet)
Set db = ws.OpenDatabase("H:\Reports\StaffReports.mdb")
Set rs = db.OpenRecordset("tblReports")
Set wObj = Worksheets("Main").Shapes("Object 17")

With rs
.AddNew
.Fields("Mgr") = Range("b2")
.Fields("wordObj") = wObj
.Update
End With

rs.Close
db.Close
ws.Close
End Sub
------------------------------------------
Any help is greatly appreciated.

Thanks

MJ

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word with embedded Excel object which has reference to addin Tom Chau Excel Discussion (Misc queries) 0 September 6th 06 02:25 AM
Way to protect an embedded Object from Edit/deletion but allow RO Access? Dennis Excel Discussion (Misc queries) 0 July 21st 06 02:38 PM
Cannor strech embedded word object BartDesc Excel Discussion (Misc queries) 2 March 10th 06 08:15 AM
should be possible to view entire MS Word embedded object in MS E. Phillip M. Feldman Excel Discussion (Misc queries) 1 April 21st 05 01:21 PM
Update cell selection of embedded worksheet in Word punch Excel Programming 0 August 17th 04 04:17 PM


All times are GMT +1. The time now is 12:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"