Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Can anyone help me work out the correct syntax for this in VBA? I'm pretty sure the problem is to do with nesting of of inverted commas... It's driving me crazy! Activecell.Value = "=IF(ISNA(VLOOKUP(TRIM($A3),INDIRECT(""&" & Left(EndAddress,1) &"""$2&"""!$P$2:$X$""" &DailyFinalRow &"), 9,FALSE))", 0, VLOOKUP(TRIM($A3),INDIRECT(""""&" & Left(EndAddress,1) &"$2&"!$P$2:$X$" &DailyFinalRow &"),9,FALSE))" The final results should be this: =IF(ISNA(VLOOKUP(TRIM($A3),INDIRECT(""&D$2&"!$P$2: $X$32"),9,FALSE)), 0, VLOOKUP(TRIM($A3),INDIRECT(""&D$2&"!$P$2:$X$32"),9 ,FALSE)) Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Comma Style Question | New Users to Excel | |||
How to add an inverted comma in a cell? | Excel Worksheet Functions | |||
Quick question - quick answer about assigning shortcut keys | Excel Programming | |||
Comma delimited question | Excel Discussion (Misc queries) | |||
Quick Question??? | Excel Programming |