|
|||||
VBA Excel Tips: Statements |
The functions and formulas offered below are: |
||
|
|
|
My favorite statement is the SELECT CASE statement. When I learned it, I had the feeling of becoming a real programmer. No more tons of "IF" and "ELSEIF", just a SELECT CASE. I present it to you on this page and I have just created a Resource Workbook on it. |
The
statements that I used more often are
Note:
Tests on strings are
case sensitive so when you test a string of
characters and you don't know if the user will
use upper case or lower case letters, use the
function LCasefunction within your test and
write the strings in your code in lower case
letters: |
|
or more
simply: |
|
|
|
|
|
Discover the power of SELECT CASE in the Resource Workbook on the topic. |
There is no function in Excel to transform "95" into "ninety five". I have created one using many many many "IFs". Discover how I did it in my Resource Workbooks. |
|
|||||