After you trigger the selection change event, could you do something like
this so you could select the same cell again
Application.EnableEvents = FALSE
Target.parent.cells(1,1).select
Application.EnableEvents = TRUE
--
HTH,
Barb Reinhardt
"Ballantine" wrote:
Thanks for showing some interest and very promptly too. Unfortunately you
are only telling me what I already know. Hopefully someone else will have
come across the same issue and will tell us how they overcame it.
"Barb Reinhardt" wrote:
Never mind. YOu've already looks at SelectionChange. From what I've seen,
it needs to be freshly selected to trigger the event.
--
HTH,
Barb Reinhardt
"Ballantine" wrote:
I have a vb.net app which includes an excel sheet. I need to detect when a
cell has been clicked but there does not appear to be an appropriate event to
handle.
So far I have handled the "XLSheet.SelectionChange" event to achieve my
requirements BUT if the cell in question is ALREADY selected, clicking on it
will not raise the above event. I have to click elsewhere so that the
selection changes, the result being that data is added to the worksheet in
the "wrong" cell.
Am I missing something that should be really obvious?
I am using vb.net express (2008) and Office 2007 (interop).