Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50090

Capitalizing First letter of name in VBA

$
0
0
Is there an easier way to capitalize the first letter of a variable and then lowercase the rest?

Say my variable is fname, I think something like:

FirstLetter = Left(fname, 1)
UCase(firstLetter)

(not sure how to use a wildcard to get the rest, but I could probably figure it out). But is there an easier way?

Viewing all articles
Browse latest Browse all 50090

Trending Articles