String-Processing Summary

Table 15.1 summarizes the string-manipulation statements and functions in VBA, based on the type of task they perform. Then, each of these statements and functions is covered separately in the chapter. Items are in alphabetical order.

Table 15.1. Summary of VBA's string-related statements and functions.
TaskStatement(s)/Functions(s)
Compare two stringsStrComp
Convert to lowercase or uppercaseLCase, UCase
Convert stringsStrConv, Str, Val
Create string of repeating characterSpace, String
Display messages to userMsgBox
Extract part of a stringMid function, Left, Right
Find one string in anotherInStr, InStrRev
Find length of a stringLen
Input text from userInputBox
Insert one string within anotherMid statement
Set string comparison ...

Get Office® XP Development with VBA now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.