Guest User

Untitled

a guest
Jul 18th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. using Microsoft.Office.Core;
  2. using Excel = Microsoft.Office.Interop.Excel;
  3.  
  4. xlWorkSheet.UsedRange.Rows.AutoFit();
  5. xlWorkSheet.UsedRange.Columns.AutoFit();
  6.  
  7. aRange.Columns.AutoFit();
  8.  
  9. worksheet.Columns.AutoFit();
  10.  
  11. worksheet.Rows.AutoFit();
Add Comment
Please, Sign In to add comment