T
TADropik
I'm able to export to excel through VBA code with out any problem.
If I write to a cell and the data has no Chr(10) in it, everything is fine:
objWS.Cells(1, 1) = "123 Main Street"
I i write to a cell and the data has Chr(10)'s in it, the Row Height ends up
to big:
objWS.Cells(1, 1) = "123 Main Street" & Chr(10) & _
"Orlando, FL" & Chr(10) & _
"USA"
I can go to the cell, press F2, then enter and it auto fits the Row Height.
Is there a way I can keep the Row Height Auto fitted to the data?
If I write to a cell and the data has no Chr(10) in it, everything is fine:
objWS.Cells(1, 1) = "123 Main Street"
I i write to a cell and the data has Chr(10)'s in it, the Row Height ends up
to big:
objWS.Cells(1, 1) = "123 Main Street" & Chr(10) & _
"Orlando, FL" & Chr(10) & _
"USA"
I can go to the cell, press F2, then enter and it auto fits the Row Height.
Is there a way I can keep the Row Height Auto fitted to the data?