Hook to grammar check

H

hafabee

I have a VBA macro that loops through the current document
highlighting certain sentences.
I would like to highlight sentences that Word's grammar check says are
passive voice.
Is it possible to hook into Word's grammar check functions like this?
 
C

Cindy M.

Hi Hafabee,
I have a VBA macro that loops through the current document
highlighting certain sentences.
I would like to highlight sentences that Word's grammar check says are
passive voice.
Is it possible to hook into Word's grammar check functions like this?
No, I'm afraid not.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :)
 
H

hafabee

Ouch.
Is there a way for a VBA macro to launch Word's grammar check just
looking for passive voice sentences?
Thanks.
 
C

Cindy M.

Hi Hafabee,
Is there a way for a VBA macro to launch Word's grammar check just
looking for passive voice sentences?
I don't think so, no.

Closest you could get would be to use SendKeys to change the
settings in the dialog box for the Grammar Settings, but that would
then involve actually displaying the dialog box. Probably not
something you want to do...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17
2005)
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 :)
 

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