Yodelayheewho
Member
Hello forum,
I have a command button on a userform that copies a person's name (proper case, i.e., John Doe) to the clipboard so I can paste it into documents.
Is there a way to convert the text to upper case on the click event?
I've tried several things like adding:
txtSalesPer.Value = StrConv(txtSalesPer.Value, vbUpperCase)
or
txtSalesPer.Text = UCase(txtSalesPer.Text)
to the code below, but no luck
Thank you in advance!
I have a command button on a userform that copies a person's name (proper case, i.e., John Doe) to the clipboard so I can paste it into documents.
Is there a way to convert the text to upper case on the click event?
I've tried several things like adding:
txtSalesPer.Value = StrConv(txtSalesPer.Value, vbUpperCase)
or
txtSalesPer.Text = UCase(txtSalesPer.Text)
to the code below, but no luck
Code:
'Copy Button - Salesperson
Private Sub cmbCopySalesPer_Click()
With txtSalesPer
.SelStart = 0
.SelLength = .TextLength
.Copy
End With
End Sub