check if cell is part of range

  • Thread starter Thread starter artemide
  • Start date Start date
A

artemide

Hello everyone,


My question:

When a user clicks on a cell in column B (only this column) --> a form
should appear.
I created a Range-object myRange = Range("B:B").
I used the selectionChange-event to show the form.
But how can I check if the clicked cell is in this range ?

Thanks
 
Almost...

If Target.Column = 2 Then

I should really learn to read...

Dunca
 
Hi
alternative approach:
If Not Intersect(target,me.range("B:B")) is nothing then
'show form
end if
 

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

Back
Top