|
|
|
SmartViewport
Reference
Returns the amount of twips the viewport has scrolled up. This property is not
available at design time and is read-only at run-time.
Syntax
object.OffsetY
The object placeholder represents an object expression that evaluates to a SmartViewport
object.
Remarks
This property is only available at run-time. You can change its value by using
method Scroll.
Example:
'Current OffsetY returns 0
Debug.Print
"OffsetY = "; SmartViewport1.OffsetY
'Scroll 200 twips up
SmartViewport1.Scroll 0, 200
'Current OffsetY is now 200
Debug.Print
"OffsetY = "; SmartViewport1.OffsetY
|
|