I'm using MS Office Home and Student 2013 under a new computer running Win 8. I need help regarding two Word macro syntex errors - see the attached picture and the exact code below: I think I need a correction to the syntax, some workaround or tell me what I need to do. ================================================================= If WordNum > maxwords - 1 Then j = MsgBox("The maximum array size has been exceeded. _ Increase maxwords.", vbOKOnly) Exit For End If End If For l = j + 1 To WordNum If (Not ByFreq And Words(l) < Words(k)) Or (ByFreq And Freq(l) > Freq(k)) Then k = l Next l ================================================================== Thanks