Solved

Using "Proper" Function within VBA

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

813 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

14 Experts available now in Live!

Get 1:1 Help Now