Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am trying to modify embedded excel object in Word from another Excel document with VBA. But I get one error about it. I have searched a lot, I have find some solutions which didnt resolve my problem.

I have already tried these :

  • MS Office Diagnostics and no errors were reported.

  • "Repaired" the installation from add/remove programs.

  • converting the embedding object to a binary object and back again.

  • ...

When I call " oOleFormat.Active" in source code like below, I get this error:

Run Time Error 6069 : The program used to create this object is excel. that program is not installed on your computer. To edit this object, install Excel or ensure that any dialog boxes in Excel are closed.

Source Codes

    Dim embObject  As Excel.Workbook
    Dim oWorksheet As Excel.Worksheet
    Dim oOleFormat As Word.oleFormat
    Dim oRange As Excel.Range
    Dim dataArray() As String

    If (table.Range.InlineShapes.count <> 0) Then
        'Access Object
        Set oOleFormat = table.Range.InlineShapes.item(1).oleFormat
        oOleFormat.Activate   
        Set embObject = oOleFormat.Object`
share|improve this question
Works for me (Office 2010). What's the source of the embedded Excel? – Tim Williams 10 hours ago
Office 2010. Dipnot: it was working before. It has not working for one weeks. I dont undertsand what was effected? – Goshawk 10 hours ago
Can you edit the object manually? Try the answer here: answers.microsoft.com/en-us/office/forum/office_2010-word/… – Tim Williams 10 hours ago
If any Excel is open, I dont edit embedded excel object in word. Thank you answer link but I read it before. I tried that unchecked all Add-ins and others. – Goshawk 10 hours ago

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.