Screen Pixels and Document Points Conversion

  • In trying to align commandbars etc (for which .Left and .Width returns pixels from left of screen) with document windows (for which .Left and .Width returns points from left of application window) I am having some difficulty.


    The conversion function

    Code
    ActiveWindow.PointsToScreenPixelsX(ActiveWindow.Left)


    gives results that are inconsistent.


    Anyone resolved this issue?

  • Re: Screen Pixels and Document Points Conversion


    hi BruceMutton,


    Welcome to Ozgrid.com



    pls don't repeat yr post in a different thread as it may confuse the volunteers
    here. :nono:


    you can simply use Edit to correct yr post



    for a location indicator, you can download FormPosition from CPearson:
    http://www.cpearson.com/excel/download.htm


    HTH

    Cheers
    ___________
    Xlite :sheep:
    [st]All you need to learn VBA is an internet connection and Ozgrid.com[/st]

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!