I would like the following code to create a duplicate window, tile these windows vertically, follow the reference from the originally selected cell, then select this cell's referenced cell in the second window. Everything seems to be working correctly until the last line of code where it will not select the second window and the corresponding cell the original cell is referencing. Any suggestions? Thanks
VBA Code:
Sub SplitWindowFollowCellRef()
Dim OriginalActiveCell As Range
Set OriginalActiveCell = ActiveCell
'Create a new duplicate window and tile these two windows vertically
ActiveWindow.NewWindow
Windows.Arrange ArrangeStyle:=xlVertical
'Refer to the original active cell and copy its formula reference and go to this cell in the second window
MyRef = OriginalActiveCell.Formula
Application.Goto Reference:=MyRef
End Sub