Solved

Using "Proper" Function within VBA

Posted on 2003-11-14
4
155 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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 …
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…
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…

911 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

24 Experts available now in Live!

Get 1:1 Help Now