本文由日文译成中文。
这是使用 Excel VBA 将工作表上的图像(自动成型)向右或向左旋转的记录。
要旋转图像,请使用 “Rotation” 属性。
< Sponsored Links >
旋转图像(自动塑形)示例
设置一个正数向右旋转,设置一个负数向左旋转。
将图像向右旋转 45 度。
Sub test()
Dim shp As Shape
Set shp = ActiveSheet.Shapes(1)
With shp
.Rotation = 45
End With
End Sub

将图像向左旋转 45 度。
Sub test()
Dim shp As Shape
Set shp = ActiveSheet.Shapes(1)
With shp
.Rotation = -45
End With
End Sub

< Sponsored Links >
