Object variables are stored as 32-bit (4-byte) addresses that
refer to objects. Using the Set statement, a variable declared
as an object can have any object reference assigned to it.
Note:Although a variable declared with the object type is flexible
enough to contain a reference to any object, binding to the object
referenced by that variable is always late binding and IntelliSense
will not be available. To force early binding, assign the object refer-
ence to a variable declared with a specific object variable type.
String
The most common variable in Word programming is probably
the string data type. A string contains a combination of char-
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.