我编写了一些代码来从 Essbase 中提取数据。在检索数据之前,我放大其中一个单元格,然后运行代码以检索数据。但是,在成功检索数据后,它会缩小以仅显示顶级一代。检索后如何避免缩小?
x = Essbase.EssVConnect(DirectCast("[" & Globals.ThisAddIn.Application.ActiveWorkbook.Name & "]" & Globals.ThisAddIn.Application.ActiveSheet.Name, String), "user", "password", "server", "application", "database")
Dim range As Excel.Range = Globals.ThisAddIn.Application.Range("ESSQRY_AT1")
x = Essbase.EssVRetrieve(DirectCast("[" & Globals.ThisAddIn.Application.ActiveWorkbook.Name & "]" & Globals.ThisAddIn.Application.ActiveSheet.Name, String), range, 1)