Re: Attaching Hyperlink To Dynamically-Created Command Button Within a Userform
WOW. Now that's what I call elegant.
I took the suggestion of using classes, resurrecting my old Class code, and I got it to work. After looking at it for a while (I've learned a lot since incorporating it a couple years ago), I understand it a bit better.
However, the way you've done it is MUCH smoother. I will definitely have to examine this a bit more! I've never done custom Properties, as you have here. I can't say I understand the Let vs. Get; as it appears, it seems to be recursive. I just have to study up some more.
In my new class/WithEvents code, I just passed the URL for each button using the forms.commandbutton's .Tag property to the Class code.
Thank you so much for the example, this helps a TON.
You all rock.