LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default [VB.NET] Inserting Relative formulas

Hi,

During the generation of Excel Documents with vb.net, I always get strange
errors who means nothing.
This happens every time at the moment I try to insert a relative formula.

Other functions (like inserting text, formulas like=sum(A1:B5), layout) are
going perfect.

Does somebody has a solution for me ?

These are some of my attempts:
Ws.Range(col & row).FormulaR1C1 = "(R[-8]C:R[-1]C)"
Ws.Range(col & row).FormulaR1C1 = "=SUM(R[-2]C:R[-1]C)"
App.Range(col & row).Formula = "=SUM(R[-2]C:R[-1]C)"
App.Range(col & row).FormulaR1C1 = "=R[-2]C+R[-1]C"
App.ActiveSheet.Cells(rij, 3).Formula = "=C[-1]+c12"


thx,




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate a chart with relative formulas Bobhoe Charts and Charting in Excel 1 March 24th 10 04:40 PM
Copying formulas with relative references Carl Excel Discussion (Misc queries) 2 March 24th 08 07:00 PM
Relative column referencing within formulas Alistair Excel Discussion (Misc queries) 4 February 23rd 06 05:38 PM
Maintain Relative Reference After Inserting a Column Mark T. Excel Worksheet Functions 3 January 4th 06 04:56 AM
make formulas from relative to absolute Barmaley Excel Programming 2 April 19th 05 05:16 PM


All times are GMT +1. The time now is 11:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"