Does anyone know how to programmatically detect when Excel's Formula Bar has focus? I need to disable a custom CommandBar when the the cursor is in the Formula Bar. Thanks!
Well,I've been playing around with this and found that Excel disables the VB/VBA CommandBar buttons (as well as a few other CommandBars)when the cursor is in the Formula Bar. Unfortunately, hiding the Formula Bar is not an option.
The problem is that my custom commandbar macros do not run when they are clicked if the cursor is in the Formula Bar. It appears the command bar is not functioning; I would like to just disable the buttons; I would be happy to just intercept this and display a messagebox to the user, however, I don't know how to capture it.
xlbo
Shouldn't that be Displayformulabar?? Or has it changed since 2k?
Rooney?
Happy Friday
;-)
If a man says something and there are no women there to hear him, is he still wrong?
The faqs ma'am, just the faqs. Get the best from these forums : faq222-2244
Thanks for the link, Loomah!!!
Happy Friday to you as well!
Also, if a man says something and there are no women there to hear him, he is still wrong, unless he is a member of this forum!
:-{}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.