To fix the issue with the cropped shape when pasting a Word table as an enhanced metafile, you can try the following steps:
- Edit the Image: As you've mentioned, right-clicking on the shape and selecting "Edit Image" seems to resolve the cropping issue. This is a valid workaround.
- Adjust Size: Using the option to "Adjust the size after Edit image" can also help in correcting the appearance of the shape.
- VBA Code: If you're trying to automate this with VBA and encountering the error with
Application.CommandBars.ExecuteMso("EditPicture"), ensure that the shape you're trying to edit is indeed selected and that it supports the edit operation. You might need to check the type of shape and ensure it's compatible with the command you're trying to execute.
If the shape is still not behaving as expected, consider checking the wrapping style of the shape or any other properties that might affect its display.
Unfortunately, the specific error you're encountering with ActiveDocument.Shapes(1).Select might require further debugging of the code or checking if the shape is properly referenced in your document.
References: