UserFormPointToLogical Method

Converts “UserForm Point” coordinates to coordinates in logical units or postscript points.. “UserForm Point” coordinates are the measure for position VBA user forms on screen.

Syntax

object.UserFormPointToLogical plfTop, plfLeft

Properties

The UserFormPointToLogical method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

plfTop

Double. Specifies the userform point top coordinate and returns the converted logical unit or postscript point.

plfLeft

Double. Specifies the userform point left coordinate and returns the converted logical unit or postscript point.

Remarks

Prior to performing the conversion, the StartUpPosition property of the form should be changed from CenterOwner to either Manual or WindowsDefault. A setting of CenterOwner will result in the form being popped up in the middle of the picture window.

 

Example

Applies To