-- [求助]自动行高没有作用
如一红色代码,自动行高没有效果,
Dim App As New MSExcel.Application
Dim Wb As MSExcel.WorkBook = App.WorkBooks.Open(fl)
Dim Ws As MSExcel.WorkSheet = Wb.WorkSheets(1)
Dim Rg As MSExcel.Range = Ws.Range("8:" & tb.Rows.Count + 8)
Rg.EntireRow.AutoFit \'自动调整行高
App.Visible = True
ws.PrintOut(ActivePrinter:= e.Form.Controls("V_Com打印机").text)
wb.save
app.Quit
此主题相关图片如下:微信图片_20190428213139.png
[此贴子已经被作者于2019/4/28 21:51:41编辑过]