LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
AOU AOU is offline
external usenet poster
 
Posts: 54
Default upper case in InputBox

What code would I use, so that when an entry in a InputBox is made (using
upper or lower case or a mix) it auto changes it to upper case.
I have the following code at the moment:

Sub CommandButton2_Click()
ms=InputBox("Enter Name")
On Error Go To makeit
If ms="" Then Exit Sub
Sheets(ms).Select
Exit Sub
makeit:
Sheets("Sheet1").Copy after:=Sheet2
ActiveSheet.Name=ms
End Sub

Thank you
--
AOU
 
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
How to convert Value to words?Eg.Rs.1000/- to Repees One thousand Shailendra Neema Excel Discussion (Misc queries) 1 September 14th 06 11:28 AM
how to use spellnumber formula Aarif Excel Worksheet Functions 3 February 27th 06 04:36 PM
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
EXCEL:NUMBER TO GREEK WORDS vag Excel Worksheet Functions 1 June 15th 05 05:57 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM


All times are GMT +1. The time now is 01:33 PM.

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"