[RESOLVED] Where is screen class?
Hi,
I'm trying to set user forms up so adjust to the current screen resolution. I know how to do this using the following code.
Code:
frmSearch.Move (0,0,screen.width,screen.height)
Just wondering under references in VBA where the screen module.
Thanks.
Re: Where is screen class?
No screen module or class. Either use APIs like the GetSystemMetrics passing the SM_CXSCREEN or SM_CYSCREEN arguments or just get the size of the ap window with Application.ActiveWindow.PointsToScreenPixelsX etc.
Re: Where is screen class?
Cheers, that API call worked. Thanks.
Re: Where is screen class?
Np, glad to help.
Ps, dont forget to Resolve your thread now that its solved so other members will know its answered. ;)