Excel Form Positioning Relative to Range

New Contributor

In Bullen's book Professional Excel Development in the section “Userform Positioning and Sizing”, he refers to a window class “EXCELE” used by Excel when working with a chart object. In the current version of Excel this window class does not appear to be used. Does anyone have an alternative to this technique of getting a range’s pixel coordinates relative to the Windows desktop? I have tried a few different objects, but none appear to have their own window object that can be found using the Windows SDK call FindWindowEx.

I have tried Pearson’s form positioner and various other techniques I have found on the web, but they are all performing poorly in the current version of Excel.

Another idea is to use the XLDESK window which gets us past the window frame, ribbon and formula bar but that still involves monkeying with the sheet headers, panes, scrolling, and zoom level.

0 Replies