View Single Post
  #9   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor
 
Posts: n/a
Default Create macro how to change smart quotes "" with smart quotes ,,"?

Autoformat works for me provided the language of the text is set as
Lithuanian - in fact I had to do this to see what the OP meant. I take it
you didn't overlook the obvious and had the autocorrect as you type option
to replace smart quotes switched off - as I normally have?

Changing it back to English is a little more fun. You would need a wildcard
replacement of
[^0132^0147]
with
"
and then run Autoformat again if you need English smart quotes.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Suzanne S. Barnhill wrote:
In the past, I could have sworn that changing the document language
and then just replacing " with " would do the trick, but when I tried
that yesterday, it didn't work.


"Graham Mayor" wrote in message
...
Unless I have completely misunderstood your requirement.

You can stop Word converting ordinary quotes to smart quotes at
tools autocorrect options autoformat as you type.

alternatively

You can autoformat and insert your country's smart quote settings by
tools

autocorrect options autoformat and set the smart quote preference.
You don't need a macro to do that. If however the autoformatting
inserts the wrong style of smart quote, then you can replace those
by searching for eg ^0132


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Sarunas wrote:
Well, in my region (Europe -- Lithuania) office 2003 automaticly
converts smart quotes " " with other smart quotes used in my native
language ,, " (ALT+0132 and ALT+0147).
So all I need to do, is to record a macro, that would search a first
quote " and would replace it with ,, , then search for closing quote
in an sentence and replace it with " (closing quotes are different
when using combination ALT+0147).
And that would be all the macro should be able to do.
Because when you have 100 of word pages with qoutes like this "",
there's a waste of time in finding and replacing them using Replace
dialog. That's why I need a macro.

Sarunas

Graham Mayor wrote:
The macro recorder doesn't always work as planned - and it's no
better in Word 2003. What *exactly* do you want to replace with
what?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



wrote:
Yes, I know that using Replace function (not a macro) everything
works fine. But here's a problem, thah I need to automate this
proces using a macro. A I'm stuck here I believe i need to
upgrade to an Office 2003. It has no problem at this point.

Thanks