VBA- Export from access to excel, autofit rows

Have you tried?
Code:
.Rows(5).Autofit
Yes I have, it auto this fits the row as per the height of the 1st cell, e.g. e5 , not as per the tallest which might be the b5 or c5
 
Yes I have, it auto this fits the row as per the height of the 1st cell, e.g. e5 , not as per the tallest which might be the b5 or c5
So find out the largest and then resize row to the largest?

Perhaps if you select the largest cell as the target, then the EntireRow will work?, else resize the range?
 
So find out the largest and then resize row to the largest?

Perhaps if you select the largest cell as the target, then the EntireRow will work?, else resize the range?
Unfortunately, the height of three ceslls (c2, d2, e2, ) outlines company name address and contact person as well as telephones emails
These are b/lading parts so, c2 is Shipper, d2 Consignee and e2 notify party and are never the same size
One BL might have as shipper, a company with very long name and complicated address telephones, you would need need size 120 while
the next bl would need size just 40.
The same happens on consignee and notify fields.
 

Users who are viewing this thread

Back
Top Bottom