基于下面的代码:
Dim oDocument As object = axWebBrowser.Gettype().InvokeMember("Document", System.Reflection.BindingFlags.GetProperty, Nothing, axWebBrowser, Nothing)
Dim oApplication As object = axWebBrowser.Gettype().InvokeMember("Application", System.Reflection.BindingFlags.GetProperty, Nothing, oDocument, Nothing)
请问:
1)代码里有这么一句:oDocument.Sheets("name").Activate,foxtable的XLS.Book类是具有Sheets属性的,是不是oDocument对象可以直接当成foxtable的XLS.Book类来使用??
2)可否用VBA来操控excel?Dim app As MSExcel.Application = oApplication 可以得到这个excel进程吗?或者,Dim wb As MSExcel.Workbook= oDocument 可以得到这个excel的工作簿吗?