在VB中, 从EXCEL导入到MSFLEXGRID, 为什么我写的代码不能执行?谢谢。

2024-11-09 00:11:08
推荐回答(2个)
回答(1):

Open App.Path & "\AlarmTable.xls" For Output As #1
Close #1
SaveDataDialog.CancelError = False
SaveDataDialog.Filter = "list(*.xls)|*.xls "
SaveDataDialog.DefaultExt = "D:\ "
SaveDataDialog.ShowSave

是做什么用的?

回答(2):

'open excel file
Set objWorkBook = objExcelFile.Workbooks.Open(App.Path & "\new.xls")