Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Charlie!
And also between the uf and the &. -- rpw "Charlie" wrote: "=if(d2020,lookup(d202,'Materials & Multipliers'!$d5:$d" & uf & ",'Materials & Multipliers'!$e5:$e" & uf & "),0)" need a space between the " and the & "rpw" wrote: Hi all, The following gets a compile error expected:end of statement and the second set of quotation marks are highligted. uf = cellb.Row Worksheets("Basic Pricing").Range("F202").Formula = "=if(d2020,lookup(d202,'Materials & Multipliers'!$d5:$d"& uf & ",'Materials & Multipliers'!$e5:$e"& uf & "),0)" I've tried building the string step by step with (a variable uf) but the cell formula doesn't update. Worksheets("Basic Pricing").Range("F202").Formula = uf Help with either or both would be much appreciated. -- rpw |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Write formula with code ... | Excel Programming | |||
Code to copy formula to variable range | Excel Programming | |||
Variable cell in vba code | Excel Programming | |||
How do I write a formula to color code based on dates provided or. | Excel Worksheet Functions | |||
Question: Cell formula or macro to write result of one cell to another cell | Excel Programming |