How can I count the number of lines in a wrapped cell through vba code?
With Cells(1, 1)
.WrapText = False
height1 = .height
.WrapText = True
height2 = .height
End With
MsgBox height2 / height1 & " Lines"
This code will not work since I have set row height to a fixed one (only one line is visible).
Also in my text, no line breaks since the data is entered through VBA code.
Thanks in advance.