Hi All... I am using a VBA macro to hi-lite shapes on top of an image, which works fine along with also zooming the screen when that shape is selected and active on the screen. Can anyone tell me if there is a way to activate a shape and have the shape show up in the center of the screen? The 'ScrollIntoView' works well, but I really want to have it centered on the screen and I cannot find a way of doing that. Below is the piece of code I am using now. Thanks for any help or guidance.
Code:
Set sh = ActiveSheet.Shapes(ListBox1.Value)
If sh Is Nothing Then
MsgBox ListBox1.Value & " does not exist!"
Exit Sub
End If
ActiveSheet.Shapes.Range(Array(ListBox1.Value)).Visible = True
sh.TopLeftCell.Activate
ActiveWindow.Zoom = 180
Application.ActiveWindow.ActivePane.ScrollIntoView _
Left:=Range(sh.TopLeftCell).Left, Top:=Range(sh.BottomRightCell).Top, _
Width:=700, Height:=900, Start:=True