vc ++中的Excel自动化 [英] Excel automation in vc++

查看:182
本文介绍了vc ++中的Excel自动化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用ColeSafeArray编写值/公式的数组以表现出色.但是现在我陷入了一个问题. Excel文件无法识别值和公式.例如,我想链接到另一个单元格(A1-AB10).所以我在A1中写为"= A10".但是excel认为它只是文本.

我尝试使用Range-put_Value2和put_Formula.没有结果.


请帮助我

Hi,
I am using ColeSafeArray to write an array of values/formula to excel. But now I am stuck with a problem. Excel file could not identify value and formula. For example I want to give a link to another cell (A1 - AB10). So I am writing in A1 as "=A10". But excel considering it as just a text only.

I tried with Range-put_Value2 and put_Formula. No results.


Please help me

推荐答案

我还没有使用过ColeSafeArray,但是如果您知道VBA,则Excel COM/OLE2 Automation相当简单.下载Macrofun帮助文件.
I haven''t used ColeSafeArray, but Excel COM/OLE2 Automation is fairly straightforward if you know VBA. Download the Macrofun help file.


这篇关于vc ++中的Excel自动化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆