All uppercase characters

  • Thread starter Thread starter Brad
  • Start date Start date
B

Brad

For the following line of code:

UserVal = Application.InputBox("Symbol?", , , , , , , 2),

irrespective of what I type, when it is later retrieved, I'd like all the
characters stored in UserVal to be uppercase, not lowercase. So, if I type
"ibm," I'd prefer it to be saved as "IBM." It'll save me toggling the Caps
Lock key on and off!

My thanks in advance for any help. Brad
 
Hi Brad, i had the same problem and i solved it with the following

userVal1 = Application.InputBox("Symbol?", , , , , , , 2),
userVal = uCase(userVal1)

This will make all in userVal Caps

Hope this helps,

best regards,

Tempy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top