Determine Cell screen coordinates

W

willem

I am programming an excel add-in using C#. I see a cell has TOP and LEFT
properties, but these properties return the coordinates relative to the top
of the "grid".

How do I translate these coordinates to screen coordinates? I want to
display a new form right next to the excel cell.

So far everyone suggests manual methods like adding the heights of all your
command bars etc... but these methods all break down at some point (i.e.
when splitting windows). Surely there must be an easier way?

Regards
Willem
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top