Auto resize row height to fit with content?

how can i do this?

auto resize row height to fit with content

i tried to use this

MyStyle.IsTextWrapped = True

but the row didnt resize to fit the content , in other words the second line in the row is hidden

what i can do to solve this?

thanks in advance

Please try to use Worksheet.AutoFitRow method.