Can someone help with filling a textbox from a cell using a label click event. I have attached an example.
Can someone help with filling a textbox from a cell using a label click event. I have attached an example.
hi, change your code for the click event like this
Of course there also other ways to do the same, e.g. use UserForm2 Initialize event...![]()
Private Sub Label1_Click() Load UserForm2 UserForm2.TextBox1.Value = Range("A1").Value UserForm2.Show End Sub
I assume you have a reason to use label, instead of command button...
If you are pleased with a member's answer then use the Star icon to rate it.
Thanks, i need to use labels as i have a userform that has labels and they are filled in with text to guide the user and depending on the choice of label it will populate the text from a cell into the textbox
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks