I have a code that runs fine on Excel 2016 but crashes miserably on 2010. This is the line that fails.
lineText = IIf(j = 1, "", lineText & ",") & myrng.Cells(i, j)
The entire macro is listed below. I need to know how to convert this to a standard If-Then-Else statement so that it will run...