Help with automating Hyphenation in Word XP

B

Bob

HI,

I am trying to automate the use of hyphenation in word XP - how can I
programmatically control which of the word-split options to take?

I also only want to do this on some portions of the document, not all of the
document

Any pointers would be greatly appreciated.

Bob
 
C

Cindy M -WordMVP-

Hi Bob,

I don't believe there is any programmering interface for working with Word's
hyphenation as it executes. And I don't think it would be necessary, as you
could simply insert Chr$(31) (a hyphenation hyphen) into the text where ever
you'd like to allow it to break?
I am trying to automate the use of hyphenation in word XP - how can I
programmatically control which of the word-split options to take?

I also only want to do this on some portions of the document, not all of the
document

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
K

Klaus Linke

Hi Bob,
I am trying to automate the use of hyphenation in word XP - how can I
programmatically control which of the word-split options to take?

From the macro recorder:

With ActiveDocument
.AutoHyphenation = True
.HyphenateCaps = True
.HyphenationZone = MillimetersToPoints(7.5)
.ConsecutiveHyphensLimit = 0
End With
I also only want to do this on some portions of the document,
not all of the document

I don't think you can have different options for different portions of the
document.
At least, the VBA help says they all apply to documents.

Greetings,
Klaus
 
B

Bob

Thanks Klaus,

I was hoping to be able to choose which hyphenation position within a word
to use as the break point.

Cheers

Bob
 

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