Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Sebastian Helm
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Pat Garard
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Sebastian Helm
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Charles Kenyon
 
Posts: n/a
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
limit on size for autocorrect file? Graham Mayor Microsoft Word Help 7 March 14th 06 04:00 PM
Autocorrect not working in all Word documents lm2942 Microsoft Word Help 2 October 20th 05 11:40 PM
Turn off AutoCorrect in Word programmatically Supermozzie Microsoft Word Help 2 September 23rd 05 01:04 AM
AutoCorrect Matt Fitzmaurice New Users 16 May 3rd 05 12:03 AM
AutoCorrect problems in Word 2003 ivan's girl Microsoft Word Help 3 April 8th 05 03:13 PM


All times are GMT +1. The time now is 01:31 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"