In Word, when right-clicking over a canvas frame, there is a fit option . How to execute this programmatically in VBA? I can't find the method in documentation.
It appears to have been left out of the object model, like the rest of the Canvas-specific right-click commands. You may be able to work around it with this, it assumes that Shapes(1) is the drawing canvas:
With ActiveDocument.Shapes(1)
CommandBars.ExecuteMso "DrawingCanvasFit"
End With
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.