Welcome toWord.Tips.Net
Ask a Word Question
Make a Comment
Learn Access Now
Free Printable Forms
Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips
Collapsing and Expanding Subdocuments
If you have used BASIC before, you will be right at home with the string functions provided by VBA. The following table details the most common string functions and what they return.
| Function | Comments | |
|---|---|---|
| Left(Source, Count) | Returns the left Count characters of Source. | |
| Mid(Source, Start [, Count]) | Returns the portion of Source beginning with the Start character. If Count is supplied, then the result is limited to that many characters. | |
| Right(Source, Count) | Returns the right Count characters of Source. |
When working with these string functions, remember that the Source variable must be declared as a string in order for the functions to work properly.
Tip #1073 applies to Microsoft Word versions: 97 2000 2002 2003
Add a Professional Finishing Touch! Word includes great tools that allow you to add professional-grade finishing touches to your documents. You can add indexes, tables of contents, and other special tables by using the detailed information available in this volume.