Chris Macro
Well-known Member
- Joined
- Nov 2, 2011
- Messages
- 1,345
- Office Version
- 365
- Platform
- Windows
I am trying to set a variable equal to the ScaleHeight percentage number and am running into problems. Here is what I have so far but am getting errors when I try to access the ScaleHeight
Code:
With ActiveWindow.Selection
If .Type = ppSelectionShapes Then
.ShapeRange.LockAspectRatio = msoCTrue
SpinButton.Value = .ShapeRange.ScaleHeight
PercentSize.Value = .ShapeRange.ScaleHeight
Else
MsgBox "You have not selected an OBJECT in PowerPoint to scale."
Exit Sub
End If
End With