Sets or returns the vertical (y) position of the workbook window's upper left corner when displayed in Excel.

 public int VerticalPosition{ get; set; }
Public Property VerticalPosition() As Integer

Excel 2003 and 2007 use different scales for determining position.  The VerticallPosition will not be the same when using ExcelApplication for the two file types.


          //--- Get the vertical position of the workbook window's upper left corner
          int winVert = wb.VerticalPosition;

          //--- Set the vertical position of the workbook window's upper left corner
          wb.VerticalPosition = 100;
        

          '--- Get the vertical position of the workbook window's upper left corner
          Dim winVert As Integer = wb.VerticalPosition

          '--- Set the vertical position of the workbook window's upper left corner
          wb.VerticalPosition = 100