Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What is the proper expression to eval the following formula?? I keep getting
#name? in my spreadsheet. Thanks For i = 2007 To 2009 Selection.AutoFilter Range("F3").Select ActiveCell.FormulaR1C1 = "=YEAR(RC[-5])=i" .. .. .. .. next i |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You are probably looking for the formula to be
ActiveCell.FormulaR1C1 = "=YEAR(RC[-5])=" & i but it really depends on what you are trying to do, your variable i was just plugged in as a letter since it was in "". -- -John Please rate when your question is answered to help us and others know what is helpful. "Clint Eastwood" wrote: What is the proper expression to eval the following formula?? I keep getting #name? in my spreadsheet. Thanks For i = 2007 To 2009 Selection.AutoFilter Range("F3").Select ActiveCell.FormulaR1C1 = "=YEAR(RC[-5])=i" . . . . next i |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
John,
That solved the problem. Thanks. If you need more info to give to someone else ( the rest of the code?0 let me know. Again, thanks !! Clint E. "John Bundy" wrote: You are probably looking for the formula to be ActiveCell.FormulaR1C1 = "=YEAR(RC[-5])=" & i but it really depends on what you are trying to do, your variable i was just plugged in as a letter since it was in "". -- -John Please rate when your question is answered to help us and others know what is helpful. "Clint Eastwood" wrote: What is the proper expression to eval the following formula?? I keep getting #name? in my spreadsheet. Thanks For i = 2007 To 2009 Selection.AutoFilter Range("F3").Select ActiveCell.FormulaR1C1 = "=YEAR(RC[-5])=i" . . . . next i |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
evaluate a concatenate expression | Excel Worksheet Functions | |||
Combination Graph with current year and prior year sales | Charts and Charting in Excel | |||
trying to get day/month/year froamt while user enters year only | New Users to Excel | |||
Evaluate Custom Expression | Excel Programming | |||
How to evaluate a text expression as formula ? | Excel Programming |