
Tips.Net > WordTips Home > Macros > WordBasic Examples > Determining if Overtype Mode is Active with WordBasic
Summary: Is your WordBasic macro running with overtype mode active? This code will let you know. (This tip works with Microsoft Word 6, and Word 95.)
If you are using a macro that inserts text in a document, you might want to determine if the overtype mode is active. This is the typing mode that results in every keypress replacing an existing character in the file. If you don't check for this, your macro could have undesired results. The following line of WordBasic macro code checks the status of the overtype mode turns it off if it is on.
If SelInfo(23) Then OverType 0
Tip #754 applies to Microsoft Word versions: 6 95
Ultimate Library! An amazing resource that brings together, in one place, the collected knowledge of everything ever published in WordTips. The library combines two powerful elements to make you more productive: solutions and convenience. Here's where you get your own copy of everything ever published in WordTips.
Check out WordTips Ten-Year Library today!
Thousands of WordTips, available for immediate download. Have all the Microsoft Word info you need, right at your fingertips. (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