Thanks for your inquiry.
Please firstly caculate, then autofit.
- Code: Select all
pt.CalculateData();
sheet2.AutoFitColumn(1);
sheet2.AutoFitColumn(2);
If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
pt.CalculateData();
sheet2.AutoFitColumn(1);
sheet2.AutoFitColumn(2);