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
Setting Fraction Bar Overhang Spacing in the Equation Editor
Printing On Both Sides of the Paper
Turning Off AutoComplete for Dates
Understanding Auto Line Spacing
Adding Comments to Your Document
Conditional Calculations in Word
Normally, you add quote marks to your text as you type. There may be times, however, when you want to add the quote marks at a later time. For instance, while editing your document you may select some text and then want quote marks added around the selected text. If you are using Word 6 or Word 95, you can use the following macro, AddQuotes:
Sub MAIN
If SelType() = 2 Then
T$ = Rtrim$(Selection$())
If ToolsAutoCorrectSmartQuotes() Then
BQuote$ = Chr$(147)
EQuote$ = Chr$(148)
Else
BQuote$ = Chr$(34)
EQuote$ = Chr$(34)
End If
EditClear
Insert BQuote$
Insert T$
Insert EQuote$
End If
End Sub
This macro first checks to make sure you have selected some text. If so, then it determines the proper type of quote marks to use, based on whether you have SmartQuotes turned on or note. The selected text is then replaced with the proper quoted text.
Tip #8 applies to Microsoft Word versions: 6 95
Find and Replace Almost Anything! An invaluable resource for learning how to harness the full power of Word's search and replace capabilities. You'll discover everything you need in order to master all the intricacies of finding and replacing elements of your document, including the super-powerful "wildcard searches" available in Word.