Bring up user form when clicking on cell

╄→гoц情女王★ 提交于 2019-12-01 13:41:20
Trace

As mentioned in comment: the first part of your code works just fine (selection change).
I just did the test and there is nothing wrong with it.
Just note:

  • Put the correct form name;
  • Place the code in the correct sheet module

As for your second question, the code you are looking for:

Set oRange = Range("A1:A10")
If Not Intersect(Target, oRange) Is Nothing Then
    'do something
End If

If you want to set the range dynamically, there have been many posts on this before.
Check out for example:
Getting the actual usedrange

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!