捨一己之利,謀眾生之福
利用VBA將word文件中的所有圖片更改尺寸。
Sub ResizeImage() Dim shape As InlineShape For Each shape In Selection.InlineShapes 'This doesn't work 'shape.LockAspectRatio = msoTrue shape.ScaleWidth = 50 shape.ScaleHeight = 50 Next End Sub
參考這個網站。
No comments:
Post a Comment