czyBlog icon indicating copy to clipboard operation
czyBlog copied to clipboard

如何获取Excel一定范围内的数据

Open PengfeiRen96 opened this issue 8 years ago • 4 comments

比如我一次想获取1-100行的数据,除了 d->sheet->querySubObject("Cells(int, int)", row, col)这样循环有没有其他方法,这样速度应该会很慢。求解,十分感谢

PengfeiRen96 avatar Jul 07 '17 13:07 PengfeiRen96

你到网上搜索一下,我记得有人在github开放了代码

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: RenFeiTemp [email protected] 发送时间: 2017年7月7日 21:49 收件人: czyt1988/czyBlog [email protected] 抄送: Subscribed [email protected] 主题: 回复:[czyt1988/czyBlog] 如何获取Excel一定范围内的数据 (#2)

比如我一次想获取1-100行的数据,除了 d->sheet->querySubObject("Cells(int, int)", row, col)这样循环有没有其他方法,这样速度应该会很慢。求解,十分感谢

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/czyt1988/czyBlog/issues/2, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJcNBzVd0srAmsnULD1aQ61DSamLvvVWks5sLjdXgaJpZM4OQ9yr.

Kratos-Coder-Hash avatar Jul 07 '17 15:07 Kratos-Coder-Hash

我记得有的,主要看看VBA有没有提供对应的函数,你查查VBA相关函数

czyt1988 avatar Jul 11 '17 07:07 czyt1988

谢谢,找到了

PengfeiRen96 avatar Jul 11 '17 10:07 PengfeiRen96

请问如果是存数据到一个新建的excel直接这样调用 m_xls->create(fileName)为什么会报错啊

PengfeiRen96 avatar Jul 11 '17 10:07 PengfeiRen96