screen draw Bug workaround

roscoe

Well-known Member
Joined
Jun 4, 2002
Messages
1,016
I have a routine that calls a combo box, and when the mouse selects a cell away from the combobox it is supposed to disappear. It works in the sample file...in mine, it hangs around but if I move the screen (mouse wheel, page-up/down, etc) such that the box goes off the screen and then bring it back again, the combo box has gone away and all is normal. It appears to be a screen draw bug.

Is there some code I can add that will refresh the screen to make the box go away without have to manually force the refresh as described above?

Thanks
 

Some videos you may like

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

roscoe

Well-known Member
Joined
Jun 4, 2002
Messages
1,016
Well, as ususal MS help is useless. It appears to be a method but MS Help doesn't show how to use it or what it is attached to.

???
 

roscoe

Well-known Member
Joined
Jun 4, 2002
Messages
1,016
Well, I did it by brute force....I added a scrolldown/scrollup sequence that did the trick.
 

roscoe

Well-known Member
Joined
Jun 4, 2002
Messages
1,016
Didn't work...box stays in place until that section is moved off the screen.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,841
Messages
5,598,390
Members
414,234
Latest member
grlevesq

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top