LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ten Ten is offline
external usenet poster
 
Posts: 9
Default Update formulas

Hi,
I am trying to base my formula in my Excel based on some
Input I get from the user. This I save in iLastYear, and
have some labels (e.g. lBudgetLastYear etc) calculated
from this.

I tried using the formula under, but then Excel don't
recognize the variables I put in (e.g. iLastYear,
lBudgetLastYear etc)

ActiveCell.FormulaR1C1 = _
"=IF(RC[-8]=iLastYear,IF(RC[-7]
=1,lBudgetLastYear,lSum06LastYear),lSumSecondLastY ear)"

How can I dynamically create an IF-sentence from VBA-code,
and put in one cell in Excel?

Thanks!
 
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
Formulas do not update AZSteve Excel Worksheet Functions 2 April 23rd 10 05:48 PM
Formulas don't update First Aid Computing[_2_] Excel Discussion (Misc queries) 2 March 28th 09 04:08 PM
Formulas don't update. First Aid Computing[_2_] Excel Discussion (Misc queries) 1 March 28th 09 05:48 AM
Update Formulas RedFive Excel Worksheet Functions 3 November 4th 08 07:10 PM
Formulas will not update! cerpintax Excel Discussion (Misc queries) 3 June 14th 06 12:30 PM


All times are GMT +1. The time now is 12:06 AM.

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"