Open embedded object problem

P

Pete

Hi.

I am trying to open embedded word objects in a excel book using the
following code generated using the macro recorder.

Sub OE9()
Sheets("OE PLans").Select
ActiveSheet.Shapes("Object 9").Select
Selection.Verb Verb:=xlPrimary
End Sub

The code works fine however when I try and close the workbook it tells me
there is a sharing violation, prompts me to save as another name but then
tells me the document is not saved.

Can anyone please advise why or offer another solution to open the embedded
documents using code.

Thanks
Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top