Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
cell value syntax
Im getting a type mismatch on the "evaluate" line code. can someone
help? dim Col_value as string dim l_lastrow as long l_lastrow = 50 Col_value = "B" b1:b50 Col_value 1: Col_value l_lastrow l_ans = ActiveSheet.Evaluate(" COUNTIF(Col_value & 1: & Col_value & l_lastrow, S_in)") |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
cell value syntax
l_ans = ActiveSheet.Evaluate(" COUNTIF(" & Col_value & "1:" & Col_value &
l_lastrow & ", S_in)") Not sure what S_in is but I am assuming a named range. -- HTH... Jim Thomlinson "miek" wrote: Im getting a type mismatch on the "evaluate" line code. can someone help? dim Col_value as string dim l_lastrow as long l_lastrow = 50 Col_value = "B" b1:b50 Col_value 1: Col_value l_lastrow l_ans = ActiveSheet.Evaluate(" COUNTIF(Col_value & 1: & Col_value & l_lastrow, S_in)") |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
cell value syntax
S-in is a var
Thanks for your help, that did the trick "Jim Thomlinson" wrote: l_ans = ActiveSheet.Evaluate(" COUNTIF(" & Col_value & "1:" & Col_value & l_lastrow & ", S_in)") Not sure what S_in is but I am assuming a named range. -- HTH... Jim Thomlinson "miek" wrote: Im getting a type mismatch on the "evaluate" line code. can someone help? dim Col_value as string dim l_lastrow as long l_lastrow = 50 Col_value = "B" b1:b50 Col_value 1: Col_value l_lastrow l_ans = ActiveSheet.Evaluate(" COUNTIF(Col_value & 1: & Col_value & l_lastrow, S_in)") |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VBA syntax - trying to input a vlookup into a cell | Excel Discussion (Misc queries) | |||
cell reference syntax | Excel Worksheet Functions | |||
Worksheet().Range(Cell(), Cell()) syntax? | Excel Programming | |||
Syntax for inferred cell references | Excel Worksheet Functions | |||
Syntax using variable in cell Formula | Excel Programming |