Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

How to Write Word AddIn to act like like AutoCorre

I have a question:

I'm using Visual Studio .Net and C# to create a Word AddIn.

How would I use the Word object model to do the following:

  WHEN a Word User types a word I want my AddIn to
  substitute for that word - just like AutoCorrect does.

  HOWEVER, I can't find any EVENT for recognizing the
  SPACE character as the user types and how to define a
  Range object for that just-typed word and make the
  substitution.

  Please point me in the right direction.

  Thanks Sooo Much
  Gene

Eugene Mortimore
Friday, March 12, 2004

I think your best bet would be to develop a smart tag add-in.  Here's one how-to article from MSDN:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmarttag/html/odc_smarttags.asp

Robert Jacobson
Saturday, March 13, 2004

*  Recent Topics

*  Fog Creek Home