Userform Label Click problem

shanec

New Member
Joined
Jun 17, 2007
Messages
19
i have created some dynamic labels on a userform however when i go to link them to with let’s say line1_click it does not recognize it albeit i know that label is definitely there. Is there a setting or something i am missing in the properties.

This is how the label is created

Set newlabel = Statistics_Form3.Controls.Add("Forms.label.1", "line" & labelnumber, True)


thanks for looking at this

Shanec
 
thanxsssss, eres genial colin. I register only for thanks you. .... mmm post from 2007. Hope you didnt died from covid or something
I likewise/in-turn reset my account credentials to respond to this hilarious expression of gratitude. And also because its true. The solution provided by the genial colin still works in 2023 on latest excel 365. His elegant concise class code is all you need. The userform examples looks intimidating but its just to demonstrate. Like five seconds and done. Raising my glass to the genial colins, send proof of life good sir!!!!
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,215,425
Messages
6,124,824
Members
449,190
Latest member
rscraig11

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top