
Tips.Net > WordTips Home > Macros > WordBasic Examples > Controlling the Italic Text Attribute with WordBasic
Summary: How to make text italics in WordBasic. (This tip works with Microsoft Word 6, and Word 95.)
Word allows a rich set of formatting attributes for text in a document. You can control the italic attribute in your macros by setting the value of the italic property. The syntax if you are using WordBasic is as follows:
Italic toggle
where toggle is either 0 (turns off the italic attribute) or 1 (turns on the italic attribute). If you omit a toggle value, the statement will simply change the current setting of the italic attribute--italic text becomes non-italic and vice-versa.
Tip #729 applies to Microsoft Word versions: 6 95
Save Time! WordTips has been published weekly since early 1997. Past issues are available in convenient WordTips archives. Have your own enhanced archive of WordTips at your fingertips, available to use at any time!
Check out WordTips Archives today!
Do you want a decade of WordTips information at your fingertips? You can find what you need with the WordTips Ten-Year Library. (more information...)
Ask a Word Question
Make a Comment
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips