I want to force a VBA-created form to open (show) at a fixed location on the worksheet. Specifically, I want it to lodge in the upper left corner so the top left corner of the form completely covers cell A1. I can set the form's Top and Left properties, but those two parameters vary according to screen resolution, toolbars showing, and zoom level.
Is there a way, programatically, to determine the pixel location of the top left corner of A1 (or any other cell) so they can be used to set the form's Top and Left properties prior to Form.Show? So far I haven't found a way to do that. Or is there some other way to position and anchor the form location to a specified worksheet cell?
Would appreciate any words of wisdom.
Bookmarks