Many user interactions aren't recorded by the macro recorder. And when it works, the resulting code is usually a mess of double lines, extra selections and deselections and just-in-time variable declarations.
If you're working with a view object, swView.postion = value will reposition the view. Here's a link to its help file.
I'm not that active anymore in this forum so I can just give a reference post in this forum.
For a couple of years ago I did something that might be of interest as reference. It is in VB and not VBA so you have to think of that when you read the code.