How to Copy excel formulas from one excel to other

S

Syam

Can anybody suggest me how to copy excel formulas from a range and past
it to another excel programatically using c#. Any suggestionwill b
appreciative
 
G

GS

Syam has brought this to us :
Can anybody suggest me how to copy excel formulas from a range and paste
it to another excel programatically using c#. Any suggestionwill be
appreciative.

Try...
{
oXLApp.Range("TargetAddressGoesHere") =
oXLApp.Range("SourceAddressGoesHere");
}
 
G

GS

Corrected to reflect copying formulas instead of values...
oXLApp.Range("TargetAddressGoesHere").Formula =
oXLApp.Range("SourceAddressGoesHere").Formula;
 
G

GS

Oops.., syntax error correction...
Corrected to reflect copying formulas instead of values...
oXLApp.Range("TargetAddressGoesHere").Formula ==
oXLApp.Range("SourceAddressGoesHere").Formula;
--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top