LogicalToUserFormPoint Method

Converts coordinates in logical units or postscript points and converts them to “UserForm Point” coordinate, which is the measure for position VBA user forms on screen.

Syntax

object.LogicalToUserFormPoint plfTop, plfLeft

Properties

The LogicalToUserFormPoint 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 top coordinate and returns the converted UserForm point coordinate.

plfLeft

Double. Specifies the left coordinate and returns the converted userform point coordinate.

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