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
There are numerous times when you are writing macros when you will need to determine if the user has made a selection. The following WordBasic code will let you know if a selection has been made. It sets the value of a flag, InSelection, to -1 (True) if there is currently a selection. Otherwise InSelection is set to 0 (False).
InSelection = 0 If SelType() = 2 or SelType() = 6 Then InSelection = -1
Tip #126 applies to Microsoft Word versions: 6 95
Create and Merge! Using Word's mail merge tool you can quickly and easily combine data from a variety of data sources to create great individualized documents that incorporate your data in ways that you control. WordTips: Mail Merge Magic is an invaluable source for learning how to harness the full power of Word's mail merging capabilities.