Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Excel Problem...

Status
Not open for further replies.

grande

Programmer
Feb 14, 2005
657
CA
Okay, bear with me, I've never done VBA in Excel before, although I have done it in Access.

I would like to change several cells (from D5 to G436) from ALL CAPS to Title Case. How would I go about doing this?

-------------------------
Just call me Captain Awesome.
 
please do not double post in both forums - although your post is more appropriate here than in MSOffice

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 


Hi,
Code:
for each r in range("D5:G436")
   with r
     .value = Application.Proper(.Value)
   end with
next


Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 
Thanks a lot! Now I've come across some special cases. For example, ProperCase is giving me:
"December Ss Package"
when it should read:
"December SS Package"

Is there a way to look for words/phrases in the individual cells and change just those?

-------------------------
Just call me Captain Awesome.
 


turn on your macro recorder.

Edit/Find Replace

Stick it in your macro.

Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top