Create macro how to change smart quotes "" with smart quotes ,,"?

  • Thread starter Thread starter sarunas.leonas
  • Start date Start date
S

sarunas.leonas

Hello,

I'm finding hard to record a working macro in Word2000, that would
change smart quotes "" with another smart quotes ,," (ALT+0132 and
ALT+0147 or ChrW(8220) and ChrW(8222))

Maybe someone could help me on this?

Thank you very much,

Sarunas
 
You may be able to do this with the Replace function, not a macro. Try
copying "" into Find what, and ,, into replace with. Try it on a couple of
quotes; if it works, use Replace all.
 
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 :)
 
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

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
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
 
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

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
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.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
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

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Back
Top