Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to turn off AutoCorrect for certain texts?
I use Word not just for word processing, but also in situations where there
is code involved. Typical problems a 1. My text contains code snippets. I would like Word to just leave them as I type them. I was hoping this would be possible if I formatted the snippets as non-English, but that doesn't help. 2. Search&Replace all occurrences of some string with "some string". Right away, AutoCorrect replaces the straight quotes with "smart quotes", according to the settings in the "AutoFormat as you type" tab. The usual way of undoing this by using Undo does not work after Search&Replace. Is there any practical solution? Obviously, it doesn't make sense to go through all 20 or so AutoCorrect options, disable them when you write code or perform certain Search&Replace actions and then enable them again when you write English. Thanks, Sebastian |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to turn off AutoCorrect for certain texts?
G'Day Sebastian,
There is no "Word" solution. You need to switch between Word and (say) Notepad. Type the snippets in Notepad, then Copy & Paste. Even then you may need to reformat the snippets in Courier for clarity. -- Regards, Pat Garard Melbourne, Australia _______________________ "Sebastian Helm" wrote in message ... I use Word not just for word processing, but also in situations where there is code involved. Typical problems a 1. My text contains code snippets. I would like Word to just leave them as I type them. I was hoping this would be possible if I formatted the snippets as non-English, but that doesn't help. 2. Search&Replace all occurrences of some string with "some string". Right away, AutoCorrect replaces the straight quotes with "smart quotes", according to the settings in the "AutoFormat as you type" tab. The usual way of undoing this by using Undo does not work after Search&Replace. Is there any practical solution? Obviously, it doesn't make sense to go through all 20 or so AutoCorrect options, disable them when you write code or perform certain Search&Replace actions and then enable them again when you write English. Thanks, Sebastian |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to turn off AutoCorrect for certain texts?
Thanks for confirming my fear. Of course, Notepad doesn't solve either of my
scenarios, since (in #1) I need to preserve formatting and similar information and (in #2) I run Search&Replace actions from macros. If there's really no other way, then it still is possible to write a pair of macros to disable and enable AutoCorrect behavior. I would have to run them everytime before and after I deal with text that want Word to leave as is. I found something (he http://72.14.203.104/search?q=cache:...s&ct=clnk&cd=1), but I'm not sure how complete their list is. "Pat Garard" wrote: G'Day Sebastian, There is no "Word" solution. You need to switch between Word and (say) Notepad. Type the snippets in Notepad, then Copy & Paste. Even then you may need to reformat the snippets in Courier for clarity. -- Regards, Pat Garard Melbourne, Australia _______________________ "Sebastian Helm" wrote in message ... I use Word not just for word processing, but also in situations where there is code involved. Typical problems a 1. My text contains code snippets. I would like Word to just leave them as I type them. I was hoping this would be possible if I formatted the snippets as non-English, but that doesn't help. 2. Search&Replace all occurrences of some string with "some string". Right away, AutoCorrect replaces the straight quotes with "smart quotes", according to the settings in the "AutoFormat as you type" tab. The usual way of undoing this by using Undo does not work after Search&Replace. Is there any practical solution? Obviously, it doesn't make sense to go through all 20 or so AutoCorrect options, disable them when you write code or perform certain Search&Replace actions and then enable them again when you write English. Thanks, Sebastian |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to turn off AutoCorrect for certain texts?
In your macro, you can turn off the AutoCorrect option for smart quotes
before you do your replace and return it to its pre-replace state afterward. -- Charles Kenyon Word New User FAQ & Web Directory: http://addbalance.com/word Intermediate User's Guide to Microsoft Word (supplemented version of Microsoft's Legal Users' Guide) http://addbalance.com/usersguide See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome! My criminal defense site: http://addbalance.com --------- --------- --------- --------- --------- --------- This message is posted to a newsgroup. Please post replies and questions to the newsgroup so that others can learn from my ignorance and your wisdom. "Sebastian Helm" wrote in message ... Thanks for confirming my fear. Of course, Notepad doesn't solve either of my scenarios, since (in #1) I need to preserve formatting and similar information and (in #2) I run Search&Replace actions from macros. If there's really no other way, then it still is possible to write a pair of macros to disable and enable AutoCorrect behavior. I would have to run them everytime before and after I deal with text that want Word to leave as is. I found something (he http://72.14.203.104/search?q=cache:...s&ct=clnk&cd=1), but I'm not sure how complete their list is. "Pat Garard" wrote: G'Day Sebastian, There is no "Word" solution. You need to switch between Word and (say) Notepad. Type the snippets in Notepad, then Copy & Paste. Even then you may need to reformat the snippets in Courier for clarity. -- Regards, Pat Garard Melbourne, Australia _______________________ "Sebastian Helm" wrote in message ... I use Word not just for word processing, but also in situations where there is code involved. Typical problems a 1. My text contains code snippets. I would like Word to just leave them as I type them. I was hoping this would be possible if I formatted the snippets as non-English, but that doesn't help. 2. Search&Replace all occurrences of some string with "some string". Right away, AutoCorrect replaces the straight quotes with "smart quotes", according to the settings in the "AutoFormat as you type" tab. The usual way of undoing this by using Undo does not work after Search&Replace. Is there any practical solution? Obviously, it doesn't make sense to go through all 20 or so AutoCorrect options, disable them when you write code or perform certain Search&Replace actions and then enable them again when you write English. Thanks, Sebastian |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
limit on size for autocorrect file? | Microsoft Word Help | |||
Autocorrect not working in all Word documents | Microsoft Word Help | |||
Turn off AutoCorrect in Word programmatically | Microsoft Word Help | |||
AutoCorrect | New Users | |||
AutoCorrect problems in Word 2003 | Microsoft Word Help |