i made a slight mistake , added or modified the coloured lines,

VB Code:
  1. Option Explicit
  2.  
  3. Private Sub Command1_Click()
  4.  
  5. Dim strArr() As String
  6. Dim i As Integer
  7. Dim intFile As Integer
  8. Dim strText As String
  9.  
  10. [COLOR=DarkRed]Dim strTxtOld As String[/COLOR]
  11.  
  12.     intFile = FreeFile()
  13.    
  14.     Open App.Path & "\words.txt" For Input As #intFile
  15.       strArr = Split(Input$(LOF(intFile), intFile), vbNewLine)
  16.     Close #intFile
  17.    
  18.     Open App.Path & "\stuff.txt" For Input As #intFile
  19.      strText = Input$(LOF(intFile), intFile)
  20.     Close #intFile
  21.    
  22.     [COLOR=DarkRed]strTxtOld = strText[/COLOR]
  23.    
  24.     For i = LBound(strArr) To UBound(strArr)
  25.         Open App.Path & "\" & strArr(i) & ".html" For Output As #intFile
  26.        
  27.         [COLOR=DarkRed]strText = Replace(strTxtOld, "Wild Card", strArr(i))
  28.         Doevents[/COLOR]
  29.  
  30.         Print #intFile, strText
  31.         Close #intFile
  32.        
  33.     Next i
  34.  
  35. End Sub