In Excel 2013, I want to center an image, horizontally, on the visible area of the screen regardless of where the mouse or cell cursors are also irrespective of what range of cells are visible.
I've got this, so far:
ActiveSheet.Shapes("Picture 1").Top = 13 'Fixed position vertically
ActiveSheet.Shapes("Picture 1").Left = (ActiveWindow.VisibleRange.Width / 2) -_
(ActiveSheet.Shapes("Picture 1").Width / 2) 'Centered horizontally
ActiveSheet.Shapes("Picture 1").Visible = True
The first and last lines work. The middle bit doesn't.
Vertically it's where I want it, horizontally it positions the image, seemingly, at random; perhaps based on cell cursor?