Can someone tell me why this doesn't work?
but this does work![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Can someone tell me why this doesn't work?
but this does work![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
The comparitive IS is a balky one. I only use it to test if somthing IS Nothing. Otherwise, I test a unique property to see if two objects are the same.
like your name test.
By the way, why loop? Wouldn't this do the same thing?
![]()
Please Login or Register to view this content.
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
Hi Mike;
You're right. In this example, your code would be better.
But this isn't my real sub. I simplified it for the thread. In reality cbSelected is optional, and if no commandbar is passed then the sub works on all commandbars.
I use "is" to compare workbooks and worksheets and never had a problem. I would still like to know why it doesn't work with commandbars.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks