How to compare string value in excel vba ? for example texbox1.text = A and textbox2.text = AAA, so texbox1.text < textbox2.text therefore msgbox will display A < AAA. how to achieve this ?
Tell me more
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Msgbox textbox1.text & "<" & textbox2.text
-- but you will need to make someIf
statements or other conditional logic to display the proper sign (<, >, or =
). – David Zemens 21 hours agoIf textbox1.text < textboxt2.text Then ...
etc. – David Zemens 19 hours ago