Simple VBA Question

TheJenson

New Member
Joined
Aug 12, 2011
Messages
30
I just have one quick question, i searched around the internet and couldn't find it, and even looked in my handy dandy VBA programming manual and couldn't find it. I don't know what this means "<>"

For example:

Code:
Do Until userName <> " "

I don't understand the condition, can someone out there clarify for me?

Thanks!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
The less than symbol followed by a greater than symbol is the way you say "not equal to" in a comparison expression (such as is found in an If..Then statement). The code line you posted says Do Until the variable username is "not equal to" a blank space... which, by the way, would be an unusual test as most times the test would be against "" (the empty string).
 
Upvote 0
"<>" means NOT equal to

Do Until userName <> " "

will also have Loop to end the Do

In this case the loop continues until userName is NOT equal to " " (a space)
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,472
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top