Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,

I am doing com automation program in c++, i need to paste formula form previous row to current row in excel(.xls) file. following is the VBA code for same.
SQL
Range("C71").Select
    Selection.Copy
    Range("C72").Select
    Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
        SkipBlanks:=False, Transpose:=False

I need implementation of above code in c++. can you please help me.
Posted

1 solution

You should take a look at:
Excel 2010 SDK: Excel 2010 XLL Software Development Kit[^]

There is also XLW - A Wrapper for the Excel API[^].

Best regards
Espen Harlinn
 
Share this answer
 
Comments
Abhinav S 21-Apr-12 6:41am    
Good links. 5.
Espen Harlinn 21-Apr-12 6:42am    
Thank you Abhinav!
VJ Reddy 23-Apr-12 19:36pm    
Good references. +5
Espen Harlinn 24-Apr-12 6:24am    
Thank you VJ :-D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900