Proper Case to Camel Case

BuddhaRhubarbButter

New Member
Joined
Dec 23, 2011
Messages
4
Hello,

I have been digging around and can't find a proper case to camel case solution. What I need is a macro that takes an input and returns CamelCase without punctuation.

So as an example:
"What is the correct answer? Please Select all that apply:"
returns
"WhatIsTheCorrectAnswerPleaseSelectAllThatApply"

Any help with this would be greatly appreciated.
 
Hi Gene

It creates a Regular Expression object.

Regular Expressions are a very powerful tool for text pattern recognition. They are around for decades and so you can expect a reliable, stable tool. They became available in later versions of vba.

If you google it you'll get millions of hits. You can find here a nice small introduction to Regular Expressions (just a whiff but maybe enough to pull you into digging deeper):

http://www.aivosto.com/vbtips/regex.html
 
Last edited:
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi Gene

It creates a Regular Expression object.

Regular Expressions are a very powerful tool for text pattern recognition. They are around for decades and so you can expect a reliable, stable tool. They became available in later versions of vba.

If you google it you'll get millions of hits. You can find here a nice small introduction to Regular Expressions (just a whiff but maybe enough to pull you into digging deeper):

http://www.aivosto.com/vbtips/regex.html
Thank you

Gene Klein
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,665
Members
449,114
Latest member
aides

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top