Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default All uppercase characters

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default All uppercase characters

Hi Brad,

Try:

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


---
Regards,
Norman



"Brad" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default All uppercase characters

use the Ucase() function in your assignment statement.

StorageSpot = Ucase(input)


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 203
Default All uppercase characters

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

*** Sent via Developersdex http://www.developersdex.com ***
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Uppercase Prashant Excel Discussion (Misc queries) 7 May 6th 10 11:28 PM
Uppercase S. Kissing Excel Discussion (Misc queries) 1 July 24th 09 05:57 PM
Searching Uppercase characters Shams Excel Discussion (Misc queries) 3 July 15th 09 02:20 PM
Uppercase help Tom T Excel Discussion (Misc queries) 0 November 29th 06 03:53 PM
Uppercase Real Dummy Excel Worksheet Functions 1 April 22nd 06 01:46 AM


All times are GMT +1. The time now is 04:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"