Given users will have different monitor sizes and different screen resolutions, I'm trying to write a routine that will allow me to see if the ribbon is maximized or minimized based on its height.Unfortunately, through experimentation I've found out that Excel doesn't like running send key commands. For example I discovered a bug where if you run the send key for minimizing the ribbon twice, each followed by a msgbox, excel acts as if Help (F1) was called instead of control f1...actually it runs both sendkeys and both Help calls...removing the msgbox clears the errors..go figure.
Here's what I'm trying to do. I got this to work by using a wait command but that screwed up the way the screen repainted.
I've tried all kinds of workarounds but nothing works.![]()
Please Login or Register to view this content.
Bookmarks