
02-28-2005, 01:24 PM
|
 |
Ultimate Contributor
Forum Leader * Expert *
|
|
Join Date: Feb 2004
Location: New Jersey
Posts: 3,338
|
|
Code:
If LCase(Left$(Variable, 1)) = "a" Then MsgBox "Hello!"
If UCase(Left$(Variable, 1)) = "A" Then MsgBox "Hello!"
Alternatively, you can put Option Compare Text at the top of the code sheet, after your Option Explicit.
|
__________________
DON'T CLICK HERE
Useful forum tags: [VB][/VB], [CODE][/CODE], [HTML][/HTML]
|