VBA- Export from access to excel, autofit rows (1 Viewer)

theDBguy

I’m here to help
Staff member
Local time
Today, 01:23
Joined
Oct 29, 2018
Messages
21,474
Have you tried?
Code:
.Rows(5).Autofit
 

Leo_Polla_Psemata

Registered User.
Local time
Today, 01:23
Joined
Mar 24, 2014
Messages
364
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
 

Gasman

Enthusiastic Amateur
Local time
Today, 09:23
Joined
Sep 21, 2011
Messages
14,311
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?
 

Leo_Polla_Psemata

Registered User.
Local time
Today, 01:23
Joined
Mar 24, 2014
Messages
364
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

Top Bottom