Lloyd,
The only way I can think of doing this would be to set up an event
handler for the workbook/worksheets to see if the selection changes once
your form is opened (you should be able to get it through the application
instance that is passed to your form, or made available to you through some
other mechanism).
When your event fires, you update the text in the textbox.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Hi again
>
[quoted text clipped - 12 lines]
>
> p.s. I am using ExcelDna to make my code visible to Excel.
pinkfloydfan - 22 Jan 2008 17:29 GMT
Thanks Nicholas
Having reviewed my project and your comments I now realise that I need
to have a handle to the calling application instance (otherwise I'll
never be able to paste the results back there)...I did try the Parent
property of the Form but that returned null so now I haven't got a
clue how you find that out.
Can you please tell me?
Thanks a lot
Lloyd
Nicholas Paldino [.NET/C# MVP] - 22 Jan 2008 18:11 GMT
Lloyd,
You are going to have to have the caller that exposes the form pass the
reference somehow to your form.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Thanks Nicholas
>
[quoted text clipped - 8 lines]
> Thanks a lot
> Lloyd