2013-04-16, 05:03 PM
Yugidude Wrote:According to my count, I have two of each, excluding the " If (FirstWord = False) Then Selection.MoveRight (2)" But I dont beleive that needs an End If (Correct me if i'm wrong). Did I miss an "If" or an "End If" in my count?
Also, I was unaware indentation mattered. Where should I indent that I have not?
The count of IFs and END IFs is correct, but their nesting inside the inner loop is wrong.
Indentation doesn't matter to the compiler, but it makes it a lot easier for humans to see what's going on. I have added the indented code to my post above. You can easily see that you're opening the IF before the FOR loop, but closing it before the NEXT. Not allowed to do that.

