Solved

Using "Proper" Function within VBA

Posted on 2003-11-14
4
154 Views
Last Modified: 2010-05-03
I have a cell in Excel that contains a string.....Is there any function in VB that will update that cell making it Proper Text?

example:

Total liabilities

should be changed to:

Total Liabilities

Thanks
0
Comment
Question by:mak345
  • 2
4 Comments
 
LVL 14

Expert Comment

by:Tommy Kinard
ID: 9749289
=PROPER("A1")

dragontooth

0
 
LVL 7

Accepted Solution

by:
Z_Beeblebrox earned 50 total points
ID: 9749299
You can use the function StrConv as follows:

= StrConv("Total liabilities", vbProperCase)
0
 
LVL 14

Expert Comment

by:Tommy Kinard
ID: 9749313
Sorry it should be
=PROPER(A1) 'A1 being the cell to be formatted

dragontooth


0
 

Author Comment

by:mak345
ID: 9749366
thank you
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now