On Apr 11, 10:32 pm, "Jim Cone" <james.cone...@comcast.netXxx> wrote:
> It is easier to just add the label manually when you create the userform and make it invisible.
> Then when you want to display it just change the visible property to True.
> --
> Jim Cone
> Portland, Oregon USAhttp://
www.mediafire.com/PrimitiveSoftware
> (Data Options Excel add-in: row stuff/date picker/random stuff)
>
> "John" <
john.publi...@gmail.com>
> wrote in messagenews:89538906-26d8-4edf...@35g2000yqq.googlegroups.com...
Thanks, but I don't think that I have explained this well enough. I am
adding an unknown number of labels - unknown until runtime, that is. I
am creating a table of 5 columns and an unknown number of rows. What I
showed above is just for the creation of the upper left-most label in
this table. There might wind up being just 1 row or there could be 100
rows - I have no way of knowing and it will vary on every execution.
Basically, I am just copying a table from a worksheet over to the
userform.
That's why I need a way to give each new label a unique name (I think
that's true - the argument doesn't seem to be optional).
Also, now that I have stated the overall intention of my code, if
there is a better way to bring the values in these cells onto a
userform, I'm open to suggestions. My tactic is to just create a label
for each cell in the table and then use the value in each cell as the
caption for the corresponding label.
Thanks again!