Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accepting common and/or capitals in an excel macro 1

Status
Not open for further replies.

vaughn9

Technical User
Sep 23, 2001
183
Here is part of my macro

dim data1 as string

data1=inputbox("Select a day of the week M/T/W/TH/F")
If data1="M" then
msgbox("Monday")
Else
etc
etc
etc

My question is how can I get the programme to accept both common and capitals. Right now it is only accepting capitals


Also can I change the label name Microsoft excel that appears to the top left of a input box?
 
data1 = InputBox("Select a day of the week M/T/W/TH/F", "My Title")
If UCase(data1) = "M" Then
...
 
Or....
data1=ucase(inputbox("Select a day of the week M/T/W/TH/F"))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top