Proper Case

  • Thread starter Thread starter TO
  • Start date Start date
T

TO

Hello all,

Is there a function in VB similar to the "Proper"
function. I would like the caption of a label show up
proper.

i.e. lblName.caption = Proper(txtName.value)
I know this doesn't work, but is there some way to
accomplish something similar.

Thanks
 
Try

lblName.caption = Application.WorksheetFunction.Proper(txtName.value)
 
Try something like the following:

Me.lblName.Caption = StrConv(Me.txtName.Text, vbProperCase)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
Try something like this

Me.Label1.Caption = StrConv("your text", vbProperCase)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top