Missing the obvious while programming...

Felix Atagong

Active Member
Joined
Jun 27, 2003
Messages
359
I just lost 45 minutes completely rewriting a UserForm because there seemed to be an error in it. I played with Load, Unload, Show and Hide, put in some If Then Elses but it only worked 1 time out of 2. And I couldn't find why...

Then after 45 minutes I had a moment of clarity and took a closer look at my macro that triggered the UserForm. My UserForm had 2 possible flags as OptionButtons (V and L) while my macro only accepted V or B. Everytime the macro encountered the L-flag it opened the UserForm again and again and again...

:banghead:

Thank God it's Friday!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
B, L...what's the difference...it's only 1 letter! :-?

OK, Computer, you know you're s'posed to do what I think, not what I type!

P.S. Friday doesn't mean diddly where I work; we run 24/7 here (all except the lucky (?) *&^%$#@!'s who work in the office area and are on salary. I haven't seen a 40-hour week since... St. Patrick's Day? Something like that. :tired:
 

Forum statistics

Threads
1,222,753
Messages
6,168,011
Members
452,160
Latest member
Bekerinik

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
Back
Top