Hi Clint,
Thanks for sticking with me. You did nothing wrong. There are two types of 'Text Boxes':
a. Active X
b. Forms
The code you tested was for the 'Active X' type.
Attached is code for the 'Forms' type, which you are using. That's why it's always good to post a sample workbook, so that code can be tested on your data.
In response to your question:
is the value in your code looking for " " or zero "0"?
Neither.
a. The of contents of the 'Text Box' is being read as text.
b. Leading and trailing spaces are removed using the 'Trim' function.
c. The length of variable 'sText' is being tested for being length 0 (= no text).
Lewis
Code follows:
Bookmarks