I have a piece of code in a Worksheet_SelectionChange event that tests Target to see if it is in MyRange, then:
Initiates a custom data validation routine if so
-OR-
Sets ComboBox1.Visible = False if not
The problem is that the if the ComboBox1.Visible = False code is triggered it seems to clear the clipboard or cancel Copy.
For example, if I select a cell outside MyRange, and choose Copy (so far so good), then click on a different cell outside MyRange - ZINGO! Nothing to paste!
If I comment out ComboBox1.Visible = False it fixes it. It's a complicated worksheet, so it might be caused by something else, but it sure looks like this code is the culprit. What the heck?
VBAjedi![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)
Initiates a custom data validation routine if so
-OR-
Sets ComboBox1.Visible = False if not
The problem is that the if the ComboBox1.Visible = False code is triggered it seems to clear the clipboard or cancel Copy.
For example, if I select a cell outside MyRange, and choose Copy (so far so good), then click on a different cell outside MyRange - ZINGO! Nothing to paste!
If I comment out ComboBox1.Visible = False it fixes it. It's a complicated worksheet, so it might be caused by something else, but it sure looks like this code is the culprit. What the heck?
VBAjedi
![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)