OaklandJim
Well-known Member
- Joined
- Nov 29, 2018
- Messages
- 855
- Office Version
- 365
- Platform
- Windows
I did some Googling but didn't find a solution. I am attempting to center a shape on the screen. Here is what I have tried.
VBA Code:
With oShape
.Name = psName
'.Left = (ActiveWindow.VisibleRange.Width / 2) - .Width / 2
'.Left = (Application.Width / 2) - (.Width / 2)
'.Left = Application.Width / 2
'.Top = (ActiveWindow.VisibleRange.Height / 2) - .Height / 2
'.Top = (Application.Height / 2) - (.Height / 2)
'.Top = Application.Height / 2
.Width = 116
.Height = 90
End With