(Don't) Hyphenate one (single) word

E

emanuel

Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel

Hi there,

I'm trying to turn hypenation off for single words, while the rest of the document is still hyphenated automatically. This was possible under Word 2004, and I had a little VBA script to quickly do that on any selected word (and the opposite too, to turn it on again) but now the macros don't work anymore, I can't even go in them to see how I did it. Can anyone help?

Thanks a lot,
emanuel
 
C

CyberTaz

Hi Emanuel -

If you - or anyone else - can figure out how to do this I'd sure like to
know :) I've never seen a way to except a single word if Automatic
Hyphenation is turned on in the doc... In any version of Mac Word. There is
a Paragraph formatting option to exempt the entire paragraph from having any
of the words in it from being hyphenated. Could that be what you mean?

Regards |:>)
Bob Jones
[MVP] Office:Mac
 
J

John McGhie

Hi Emanuel:

Check the Help topic " Control hyphenation".

If you choose to manually hyphenate some text, and indicate where you do
want hyphens, Word will not put them where you don't want them.

Cheers


Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel

Hi there,

I'm trying to turn hypenation off for single words, while the rest of the
document is still hyphenated automatically. This was possible under Word 2004,
and I had a little VBA script to quickly do that on any selected word (and the
opposite too, to turn it on again) but now the macros don't work anymore, I
can't even go in them to see how I did it. Can anyone help?

Thanks a lot,
emanuel

--

Don't wait for your answer, click here: http://www.word.mvps.org/

Please reply in the group. Please do NOT email me unless I ask you to.

John McGhie, Microsoft MVP, Word and Word:Mac
Nhulunbuy, NT, Australia. mailto:[email protected]
 
E

emanuel

Hi again,

sorry for the delay in responding... What I used in Office 2004 was a Macro
with the command

Selection.NoProofing = True

(and another one to turn it back on). Like this, I'd select one word, run
the macro and be sure that this word wouldn't be hyphenated. The options
you've described, if I understand well, switch of hyphenation for a
paragraph/section.

No better solution around?

Cheers,
emanuel
 
C

CyberTaz

Sorry, but since 2008 doesn't support VBA I'm afraid macros will not work
for that purpose. Whether the equivalent could be accomplished with
AppleScript I don't know.

Regards |:>)
Bob Jones
[MVP] Office:Mac
 
E

emanuel

Ok, as nobody was able to help, I had to dig it out myself. Wasn't that
difficult after all, I post it in case anyone else might need it too. It's
especially practical if you want to avoid the ugly hyphenation after the
first letter of a word that is permitted by German post-reform rules but a
real no-go in print.

tell application "Microsoft Word"
activate
set no proofing of selection to true
end tell

Save it to a file ending in .scpt and put in into ~/Documents/Microsoft User
Data/Word Script Menu Items/. Add modifier keys if you like to.

Cheers!
 
C

CyberTaz

Ah... So it *can* be done with AppleScript. Thanks for the heads up - It's
always appreciated when someone takes the time to share :)

Just one question as I know much about the extent of that base command -
doesn't that script (as well as your previous macro) exempt the targeted
words from Spell Check & other proofing functions as well?

Regards |:>)
Bob Jones
[MVP] Office:Mac
 
E

emanuel

Yes that's right, it indeed does no proofing at all with regard to the
selected words.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top