Excel VBA 自动调整表格图片大小
Sub AutoFitPic() Dim pic As Picture For Each pic In ActiveSheet.Pictures pic.ShapeRange.LockAspectRatio = msoFalse pic.ShapeRange.Width = pic.Width / pic.ShapeRange.ScaleWidth(1, msoFalse) * 100 pic.ShapeRange.Height = pic.Height / pic.ShapeRange.ScaleHeight(1, msoFalse) * 100 Next pic End Sub
原文地址: https://www.cveoy.top/t/topic/mAJm 著作权归作者所有。请勿转载和采集!