Left Property

Microsoft Office Web Components Visual Basic

ShowLeft property as it applies to the ChScrollView object.

ShowLeft property as it applies to the PivotData object.

ShowLeft property as it applies to the Range object.

ShowLeft property as it applies to the Window object.

Example

This example scrolls to the left through the spreadsheet window to display cell F1 if this cell is currently to the left of the visible range.

Sub ScrollSheet

   Dim rngScroll

   Set rngScroll = Spreadsheet1.Range("f1")

   If rngScroll.Left < 0 Then Spreadsheet1.ActiveSheet.Scroll rngScroll

End Sub