PC Review


Reply
Thread Tools Rate Thread

C++ Excel Automation

 
 
chasefrench
Guest
Posts: n/a
 
      4th Nov 2008
i ve set a C++ program to interface with an open instance of excel. If i use
the code to retrieve data from an open excel workbook:

e.g
say i write
Excel::RangePtr pRange = XLS->GetRange(_bstr_t("A1"),_bstr_t("A10")); //XLS
pointer to Excel sheet

is there a function that will return the number of rows or columns of that
range? or how to use operators like +,- with pRange->Item[] or anything
equivalent. Is there a better function for retrieving this data and
performing such operations?
i know you can use XLS->Cells for the whole sheet but is there anything
better?

do you know of any good books or resources that give explanations of the
functions that can be used with RangePtrs??

Thanks for any help or advice you can give
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automation C++ code works for Excel 2003, not for Excel 2007 jayo Microsoft Excel Programming 0 6th Aug 2008 06:51 PM
How to determine if an excel Excel was open by code (automation) ormanually, by a human user Radu Microsoft Excel Programming 3 22nd Jul 2008 04:38 AM
Access automation leaves Excel open which in turn locks 2nd automation attempts EagleOne@discussions.microsoft.com Microsoft Access 8 30th Jun 2008 01:27 AM
automation on excel(automated from Access VBA code) stops when opening another excel file thread Microsoft Access 1 27th Apr 2007 09:07 PM
Excel Automation creates a hidden instance of Excel using the Append Method ScardyBob Microsoft Access VBA Modules 4 16th Aug 2006 02:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:36 AM.