I have created a named range and then merged that range. I want to set the IsTextWrap of this merged range to True. However the code I am using is throwing a null exception error. (see my code below) Does the range have to have text in it to set the wrapped text property?
Dim errorRange as Range = worksheet.Cells.CreateRange(21,120,5,20)
errorRange.Style.IsTextWrapped = True