VB中如何将TREEVIEW控件显示的内容输出到EXCEL
展开全部
我用的是将结果按照要求生成到EXCEL表中的,你看看下面的这个程序:
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs Filename:=excelpath & "\**" & cate & code1 & name1 & "-" & code2 & name2 & ".xls", FileFormat _
:=xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False
Application.DisplayAlerts = False
'Application.DisplayAlerts = True
ActiveWorkbook.Close savechanges:=False
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs Filename:=excelpath & "\**" & cate & code1 & name1 & "-" & code2 & name2 & ".xls", FileFormat _
:=xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False
Application.DisplayAlerts = False
'Application.DisplayAlerts = True
ActiveWorkbook.Close savechanges:=False
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |