I'm wanting to put the highlighted section in a Sub to be called from within the With listAccounts section to help make my code more readable later on. This section changes labels to Bold depending on which item in the Listbox (listAccounts) is selected. If another item in the Listbox is chosen, then those non-related labels would toggle back to non-Bold and the related labels would Bold.
The section after the Dim's is what resets those labels to non-Bold. If I pull the Se lect Case section out and call it from within the If .Selected(i) section, it works just fine, but the reset to non-Bold doesn't want to work.
(Note: I had to insert an extra space character in Select so the forum firewall wouldn't block this post.)
This is what the labels look like. bold labels.pngPlease Login or Register to view this content.
TW? and NTW should never be Bold at the same time, yet that is what happens if I put the Se lect Case section into it's own Sub. I'm sure I'm simply not putting the Reset to non-Bold section in the right place in the Sub.
Here is my attempt at moving the Se lect Case out by itself:
Please Login or Register to view this content.
Also, why won't the List Click event run the Reset to non-Bold when a new Listboxk item is clicked even if it is in both the Click procedure and the TrialWorthiness_Labels subroutine?Please Login or Register to view this content.
Thank you,
Delain
(Note: I had to insert an extra space character in Select so the forum firewall wouldn't block this post.)
Bookmarks