Searching this group i found interesting solutions and couple of problems.
I need to search from VB.net, text in Word and replace that text with replacement text. I need to replace 500+ words!
-VB.net 2005 express
-word 2003
-PIA reference added

VB Code:
  1. Imports Word = Microsoft.Office.Interop.Word
  2.  
  3. Public Function DoFindReplace()
  4.         Dim oWord As New Word.Application
  5.         Dim oDoc As Word.Document
  6.         Dim sFind As String
  7.         Dim sReplace As String
  8.  
  9.         oDoc = oWord.ActiveDocument.Content
  10.         Dim rngRange As Word.Range = ActiveDocument.Range 'Problem: Not Declared
  11.  
  12.         With rngRange.Find
  13.             .ClearFormatting()
  14.             .Replacement.ClearFormatting()
  15.             .Text = sFind
  16.             .Replacement.Text = sReplace
  17.             .Forward = True
  18.             .Wrap = Word.WdFindWrap.wdFindContinue
  19.             .Format = False
  20.             .MatchCase = True
  21.             .MatchWholeWord = True
  22.             .MatchWildcards = False
  23.             .MatchSoundsLike = False
  24.             .MatchAllWordForms = False
  25.             .Execute(Replace:=Word.WdReplace.wdReplaceAll)
  26.         End With
  27.     End Function
  28.  
  29.     Private Sub subsubTran_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles subsubTran.Click
  30.         Dim oWord As New Word.Application
  31.         Dim oDoc As Word.Document
  32.         Dim path As String = Me.TextBox1.Text
  33.         oWord.Visible = False
  34.         oDoc = oWord.Documents.Open(path)
  35.  
  36.         Call DoFindReplace("System", "Computer", ActiveDocument.Range)'Problem: Not Declared
  37.         Call DoFindReplace("test", "tempo", ActiveDocument.Range)'Problem: Not Declared
  38.         Call DoFindReplace("car", "bus", ActiveDocument.Range)'Problem: Not Declared
  39.  
  40.         'etc. etc.
  41.  
  42.         oDoc.SaveAs(path)
  43.         oDoc.Close()
  44.         oDoc = Nothing
  45.         oWord.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone
  46.         oWord.Quit()
  47.         oWord = Nothing
  48.     End Sub
Till now the only problem is "ActiveDocument" not declared, but when I play with it, I gort more errors...

Any help appriciated. And yes, this is my first encounter with VB.net or similar. Sorry for bad english.
Zeljko