Solved

Using "Proper" Function within VBA

Posted on 2003-11-14
4
159 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 Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

820 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